Unwanted links from Nodes

Hello,

I am generating Nuke Scripts via Nuke Studio’s exporter. The script is ok, but the compositing team wants me to add more nodes (and stacks) which have caused problems so I come here looking for help. In the picture attached you can see the two nodes i added in the “Additional Nodes” option in Nuke Studios export, but for some reason the script connects them to the “AddTimeCode1” node, but this is not what I want. Is there some way to add the two nodes on the right by themselves without the unwanted link? Also, is there some way to control the position of the Read node in the script?

Your best bet is to dig in to the nuke python api : Manipulating the Node Graph — NUKE Python Developers Guide v6.3v8 documentation

1 Like

Hello Patrick,

Thank you for the information, I appreciate it a lot. From what I read this is mostly for controlling the position of the nodes in the script, but I did not see anything about the links. Does this mean I will need an adittional python script for this?

Best Regards,
Sergio

You will have to dig into the NukeStudio PTR Plugin code and adjust it to your needs.

You may be better off doing some custom code in the workfiles app to hook into loading a new file and then load a custom set of nodes, or creating menus for it etc.

the nuke studio export code is REALLY messy and obtuse, I wouldn’t recommend getting into it too deeply. Instead, maybe think about a python script that could be run in nuke on load (either automatically through onScriptLoad or manually by the supe) that would take the crappy studio input and conform it to the standard v0 the comp department expects.

1 Like

Be sure that the additional nodes are not selected. Maybe this can be a reason of additional link?