The typical way in which gizmos are used is to add the directories
containing the files to the Nuke plugin path and then just use
`nuke.createNode` with the base name of the .gizmo file.
So, for instance, if a gizmo file is named “MyCustomNode.gizmo”, you would
create it using `nuke.createNode('MyCustomNode')`.
-Nathan
From: Erwan Leroy
Sent: Sunday, January 04, 2015 10:42 PM
To: Nuke Python discussion
Subject: Re: [Nuke-python] platformPathRemaps
Hi Nathan.
At the moment when I load a script from, let's say, windows to linux, it
comes up with an error.
When double clicking the node, it comes up with a knob "command" that has as
a value the path to that gizmo ("Z:/CORE/2D/NUKE/GIZMOS/xxxx.gizmo")
As well as a second knob containing all the parameters for said gizmo.
If I open the .nk in a text editor and search and replace Z:/ by my linux
path, then it opens just fine.
Could it be that my gizmo menu adds them the wrong way then?
menu.addCommand(name, 'nuke.createNode("'+ path + '")', "")
Where path is the full path to the gizmo, including the filename.
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python