fix: keep styled numeric fields editable and preserve theme LUT QA fixtures
这个提交包含在:
1 父节点
dde98c8836
当前提交
c8d92077e5
5 个文件已更改
+39
-4
没有与搜索条件相匹配的文件
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Recreate the authored LUT/browser QA inputs without touching the user library."""
|
||||
from pathlib import Path
|
||||
import runpy
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
root = Path(__file__).resolve().parent.parent
|
||||
runpy.run_path(str(root / 'tools/create_host_fixture.py'))
|
||||
qa = Path('/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa')
|
||||
source = qa / 'LUT浏览库验收素材'
|
||||
styles = {'暖色/暖调.cube': (1.12, 1, .85), '暖色/柔和.cube': (.92, .96, 1.04),
|
||||
'冷色/冷调.cube': (.82, 1.01, 1.16), '冷色/中性.cube': (1, 1, 1)}
|
||||
for name, gain in styles.items():
|
||||
path = source / name
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
lines = ['TITLE "Dayu Synthetic QA"', 'LUT_3D_SIZE 2',
|
||||
'DOMAIN_MIN 0 0 0', 'DOMAIN_MAX 1 1 1']
|
||||
for b in (0, 1):
|
||||
for g in (0, 1):
|
||||
for r in (0, 1):
|
||||
lines.append(f'{r*gain[0]:.8f} {g*gain[1]:.8f} {b*gain[2]:.8f}')
|
||||
path.write_text('\n'.join(lines) + '\n')
|
||||
tree = ET.parse(qa / '大鱼调色_正式版验收.fcpxml')
|
||||
document = tree.getroot()
|
||||
document.find('.//event').set('name', '大鱼调色_主题LUT验收')
|
||||
document.find('.//project').set('name', '大鱼调色_主题与LUT浏览库验收')
|
||||
ET.indent(document)
|
||||
output = qa / '大鱼调色_主题与LUT浏览库验收.fcpxml'
|
||||
output.write_text('<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE fcpxml>\n'
|
||||
+ ET.tostring(document, encoding='unicode') + '\n')
|
||||
print(output)
|
||||
在新工单中引用
屏蔽一个用户