TCL

Multiline Python Script inside TCL Expression

EXAMPLE HERE


[python -exec {

with nuke.toNode('Blur86').input(0).input(0):

    new_val = nuke.toNode('Blur1')['size'].value()

}] [python new_val]


Top Node of a node inside a group TCL

use `parent` function to get the group and then pass it to `topnode` with input number `input1,2,3,etc`

[basename [value [topnode parent.input3].file]

Check if input is connected using TCL

[exists this.input0]]if nuke.thisNode().input(0)

This could be handy to use in switch nodes to avoid missing input errors

Some Great Resources