# 删除表达式 for i in knob2.animations(): knob2.deleteAnimation(i)
将表达式烘培成关键帧
1 2 3 4 5 6 7 8 9 10 11 12 13
node = nuke.selectedNode() first = 1 last = 100
for k in node.knobs(): knob = node[k] if knob.hasExpression(): curves = knob.animations() for c in curves: for f inrange(first, last): value = c.evaluate(f) c.setKey(value, f) c.setExpression("curve")