Nuke 10 vs Nuke 11

Difference between Nuke 10 and Nuke 11 for Artists

Some differences I've found between Nuke 10 and Nuke 11

In this short article, I don't want to talk about the news that The Foundry did in Nuke 11.
But I want to collect some differences I noticed between Nuke 10 and Nuke 11.





Corner Pin

I would like to start with the CornerPin node. In Nuke 10 and Nuke 11 it's the same node, with just a difference: name of a knob

If you create the CornerPin in this two version, you will notice that the real name of the button "Copy from" is:

  • Nuke10: "copy_from_to"
  • Nuke11: "copy_from"




Of course, you can change version without any problem, but if you create a Gizmo where you Pick this knob, you will get an error back. I'm try to open the Gizmo CornerPin_auto that I've created in Nuke11 with Nuke10. In this case the other way around it's basically the same.




That's why I created two version for this Gizmo: the first one if Nuke <= 10 and the other one if you are using Nuke 11:




You can always use this code in TCL and Python to check which version of Nuke you are opening. I've found this easiest solution to avoid the problem in your Gizmo:

#GET NUKE VERSION. USE PYTHON IN EXPRESSION
[python {nuke.thisNode().knob(\'rotate\').value()}]
[if {[python nuke.NUKE_VERSION_MAJOR]<10} {return [11]} {return 10}]
[if {[python nuke.NUKE_VERSION_MAJOR]<10} {return "CornerPin2D.copy_from"} {return "CornerPin2D.copy_from_to"}]

#GET NUKE VERSION in PYTHON
if nuke.NUKE_VERSION_MAJOR < 11:
	#nuke <= 10
else:
	#nuke >= 11
	
	
#A SOLUTION
##############################################################################
#CREATE MANUALLY THE BUTTON KNOB THAT EXECUTE THE SAME FUNCTIONS OF COPY_FROM
group = nuke.thisNode()
node = nuke.toNode(group.name() + '.CornerPin2D')

node['from1'].setValue(node['to1'].getValue())
node['from2'].setValue(node['to2'].getValue())
node['from3'].setValue(node['to3'].getValue())
node['from4'].setValue(node['to4'].getValue())


Download Gizmo



Leave a comment