fxT_cloneViaExpressions v1.3


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Tor Andreassen
Website: www.fxtor.net
Alternative to the clone node, using expression instead to link all visible knobs accept knobs that are unsafe to link or that otherwise should not be linked. Make clones great again!
Requirements:
12.2, 12.1, 12.0, 11.3, 11.2, 11.1, 11.0, 10.5, 10 or later
Linux, Mac, Windows
27 Feb 2022
241

fxT_cloneViaExpression

Clones are a nice feature in Nuke, but the random bug that comes with clones can corrupt your nuke-script. This python script lets you replace the clone feature in Nuke with a tool that automates the process using expressions. The difference is that you will have a parent and child node in stead of the non-directional functionallity of the clone feature.


Features:

- Remove the clone feature in the menu and replaces it using the same shortcuts (alt+k, and alt+Shift+k for declone)
- Only sets expressions on visible knobs (hidden knobs, and otherwise unsafe knobs to link will not be linked)
- Takes into account for multi and single knobs (color knobs), this will be restored to singleValue/original state when you declone the node.
- Links all selected nodes (you can select multiple nodes and link them at the same time)
- label will be set on the 'expressionCloned' node so you know where its coming from
- Won't let you link nodes that are considered unsafe to link (by class or name of node)
- also works for nodes with curve-knobs (such as Huecorrect, colorCorrect, Sampler, ect.)

Change Log:

v. 1.3: some PEP8 python standard fixes, remove global statements and genrally improve code. Fix some declonig isses with nodes that have curves so they reset properly.

v. 1.2: Minor bug fix.

v. 1.1:
  - Fix text knobs links (now sets tcl value to parent nodes value)
  - Now allows curveknobs to be linked. They can not be linked, so this is solved with a small callback (fully managed so it's not slow and don't
     leave any callbacks behind if nodes are deleted or undone ect. Was sceptical to implementing this myself at first, but its written in a 100%
     safe way. Reason I decided to implemement this was that sometime I want to link the ColorLookup node which was not possible by a simple link)
  -  removed user choice to decide if disable knob should be linked, I never used this so decided to remove it (want it back? I've included a
     simple explination on how to change this in the code)


v. 1.0 : Firste release


Compatevility Info
Tested on nuke 11 and 12.  Support for Nuke 13 in unknown atm, when I have acess to this version, I will update for compatebility if there are any changes needed for python3.

Please login in order to download these files.

Comments   

 
0 # Allen Chen 2022-05-12 11:56
Hello,Tor Andreassen.
It's a great tools.
I clone a node and i "d" this node,the other node can't disable,too.
Can you replace this?
 
 
+1 # Tor Andreassen 2022-11-18 20:28
Hi Allen, thank you for the kind words.

About the disable. That one was intentionally left out of the linking. The reason for this is that the linked node is often one you want to disable manually to see what it's doing, or the artist forgets that it's linked and when you manually disable it will set a keyframe on the node since it's linked. I wanted to keep it out of the linking process to allow for manual enabling and disabling without having keys set on the node.

If you want this to happen you can easily modify the python script, by removing 'disable' from the ignore_knobs list. Hope that helps
 
 
0 # Shingo Kobayashi 2023-05-12 05:19
Great! This is just what I wanted.
I will use it. Thank you.
 
 
0 # Travis Button 2023-10-25 23:09
The saddest part about the existence of this script is that The Foundry is so worthless, they haven't addressed a known bug that is over a decade old and has continued to exist through so many major releases. This company is so misguided, they are really in need of new ownership/manag ement. I have more than 10 critical bugs that are officially logged over 5 years ago and have yet to be resolved. This rant could go on and on, The Foundry's entire support staff dreads to get assigned a ticket with my name on it.

Now, thanks for making clones great again! haha.
 

You have no rights to post comments

We have 2130 guests and 69 members online