In The Foundry Nuke, I am trying to make a script. After pressing Create
button I got a special Transform
node. I want to catch this node that is being created i.e. if it's a tracker, I want that tracker to get it in my script so I can manipulate it.
Example:
track.knob('cornerPinOptions').setValue('Transform (match-move)')
cc = track.knob('createCornerPin')
nuke.Script_Knob.execute(cc) # this creates a transform node
# Now here is the part I can't figure out:
# How to select that transform node being previously created in my script?
I tried looking for last created node built-in function but there is none I could find. I tried some callbacks but I am not sure how to use them properly.
For selecting and deselecting a previously created NUKE's node you should use a method
nuke.toNode('nodename').setSelected( boolean )
.Here's an example how to do it: