tcl for grabbing the second input

Here’s the case , i got a gizmo with multiple inputs, i want to feed a tracker node into the second input of my gizmo. I want to read automatically the track1 data from the tracker node and applied to my gizmo using expression.

Ok, well I can use python single line expr , something like :

Code:

nuke.thisNode().input(1).knob('track1').value(0)


input(1) -> to get data from second input. But …. there’s something wrong with when using this python single expression. That python expression above is working perfectly. But as soon as i use that code , my whole script suddenly become very very slow. It took one second just to click any nodes and another one second to drag the node. When i delete that code, my nuke script is back to normal. Must be a bug … so i want tcl version.

I can use tcl : input.[parameter] , but this ‘input’ keyword only work for the first input not the other input (second input , third input etc). I tried using array index something like input(1) or input[1] but they’re not working.
Can anyone help me with the TCL pls . Or any other option?

Thanx

No Responses to “tcl for grabbing the second input”

Post a Comment