nuke: adding expression value knob to settings template

This commit is contained in:
Jakub Jezek 2022-10-06 21:21:17 +02:00
parent 4aedaa975e
commit d8df51e49f
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
2 changed files with 23 additions and 0 deletions

View file

@ -1672,6 +1672,13 @@ def set_node_knobs_from_settings(node, knob_settings, **kwargs):
if knob_name not in node.knobs():
continue
if knob_type == "expression":
knob_expression = knob["expression"]
node[knob_name].setExpression(
knob_expression
)
continue
# first deal with formatable knob settings
if knob_type == "formatable":
template = knob["template"]

View file

@ -28,6 +28,22 @@
}
]
},
{
"key": "expression",
"label": "Expression",
"children": [
{
"type": "text",
"key": "name",
"label": "Name"
},
{
"type": "text",
"key": "expression",
"label": "Expression"
}
]
},
{
"key": "formatable",
"label": "Formate from template",