mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
nuke: adding expression value knob to settings template
This commit is contained in:
parent
4aedaa975e
commit
d8df51e49f
2 changed files with 23 additions and 0 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue