The most common situation when we might want to call python from TCL is using the label field on the given node's Node tab. If we put some text here like "maki"
it will appear below the node's name in the node graph.
focal: [value focal]
It would look like this:
To call python we can to use the following syntax:
[python {python commands}]
To output the file name of the camera we can use the following expression:
[python {nuke.thisNode()['file'].value().split("/")[-1]}]
It would look like this:
No comments:
Post a Comment