Set Expression via Python
To set an expression e.g. on a Dropdown-Menu, you’ll have to use Python instead of being able to drag’n’drop one knob to the other.
In case you would like to switch the antialiasing inside a Scanline Renderer to “high” when rendering on the farm, but keep working in the GUI with “none”, you could use a line like this:
1 |
nuke.selectedNode()['antialiasing'].setExpression('$gui? 0:3') |
Of Course you can use this for every kind of knob. Quite useful to link transformation and rotation order in 3d space, too.
Remapping values with the lerp() function Rotate World Normals to Camera