nukePasswordProtect v1.0


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Josh
A group node with some python code to allow you to password protect your nuke script
Requirements:
8.0 or later
17 Jun 2014
143

This is a node I threw together while teaching myself some more python snippets.  What the tool allows you to do is password protect your nuke script.  the tool is completely standalone and will work with any scripts.

The tool isnt a .gizmo or .py it is a group node to allow it to be standalone and not corrupt the script incase the gizmo isnt installed on another computer.

to install the node just copy  the text from the attached text document and paste in your node graph

the default password is pass and can be easily changed by typing in a new one in the nodes properties.

to have the node actually take effect you will need to add this to your onScriptLoad callback under the project settings python tab

 

nuke.toNode('Password').knob('lock1').execute()

 

 

then just save the script and next time the script is opend it will prompt you for a password, if cancel is pressed it will just close

take note if you leave the password empty on the node your script will be inaccessible unless you open your .nk file in a text editor and delete the node from there.  doing so may corrupt your nuke save

 

Please login in order to download these files.

Comments   

 
0 # Simon Jokuschies 2014-06-18 09:19
nice idea, Josh.
I recognized some strange behaviour. When i type in a wrong password followed by the right password my nuke crashes. Furthermore, you can easily unlock it without knowing the password. Just open the .nk file in a texteditor and delete the following line:

onScriptLoad nuke.toNode('Password').knob('lock1').execute()

with deleting that line the onScriptLoad command won't be executed and you can work in the nuke file.
 
 
0 # Josh Robertson 2014-06-26 17:38
Hey Simon thanks for the comment, Ill take a look into that strange behavior, what is weird is that has never happened to me. as for the security of the node it definitely isn't foolproof as you stated and how I stated in the description you can just delete some of the code from your .nk file. if you do want a secure way of password protecting your script I would just recommend a password protected zip file :P
 
 
+1 # gurrala sirish 2018-08-27 12:31
Hi Josh,

How can we create plugin from a gizmo, Is it possible
 
 
0 # sridharan K 2017-06-01 11:27
Interesting work dude :)
 
 
0 # ali rahbari 2019-08-04 08:07
Hi Josh,
The Idea of creating this script is cool and useful but I couldn't use this script.
I just copy the text into my node graph and set a password and save the nuke script, then run the script again and nothing happens.
could you help me with this issue?
Also when I'm looking inside the gizmo it's empty just input and output nodes.
 

You have no rights to post comments

We have 4776 guests and 95 members online