Package_Project v2.1
This location is for Registered Users Only.
Perhaps you need to login or register.
4.8, 5.0, 5.1, 5.2, 6.0, 6.1, 6.2, 6.3 or later
Linux, Mac, Windows
Collect all the read nodes sequences into a project folder and give a relative path to every read nodes.
Once everything is collected into the Project folder you can move the folder everywhere you want without loosing the connection in the nuke script with the read nodes path.
Great for free freelance or students projects.
When you run the script it will ask where to save the Project and the Project Name.
After that it will copy every read nodes, read geo nodes, camera that reads from external file into the project folder.
Very Important : when you run the script the is a CHECKBOX on top of the roject path, if is the FIRST time that you run the script for the nuke script leave it checked, uncheck ONLY if u have run already the script once and you want to import into the project folder new read nodes that weren't in the script the first time
copy and paste the script in the menu.py , run Nuke and you will find the script in the My Script menu
any feedback is appreciated
thanks
Marco
Comments
THANKS
thanks for the tip, I completely forgot about that
Cheers
Marco
Alternatively, if you want to execute the script from a custom entry in the nodes toolbar, or from a custom entry in the File or other menu, you could add an entry in your menu.py.
For example, this code add an entry in your Nuke File menu called "Package Script". Note that I have renamed this py script to be called "package_script .py" and put it in a folder of python scripts that are in my search path. (for example, a folder named 'python' in my .nuke folder, with the entry "nuke.pluginAdd Path('./python' )" in my init.py file.)
Code:
<br />menu = nuke.menu('Nuke') <br />MyScripts=menu.addMenu('My Scripts')<br />MyScripts.addCommand( 'Package Proj', 'Package_Proj()')<br />
Should not be in there. Instead The install instructions should be to put the script in the plugin path, rename script to Package_Script and add these lines to the menu.py...
Code:
<br />import Package_Script<br />menu = nuke.menu('Nuke') <br />MyScripts=menu.addMenu('My Scripts')<br />MyScripts.addCommand( 'Package Proj', Package_Script.Package_Proj, "" )<br />
The checkbox is made to package all the readNodes after you created the Project folder.
e.g. : Let's say you have your project already done and you're working on your shot, at a certain point you import other Read from your desktop. If you run the script with the checkbox on, is going to get the new ReadNodes that aren't in the Project folder and copy them in it.
give it a try and let me know
im having problem with this script....after i copy the script to the menu.py which is located in .nuke it came out an error when i try to collect it....the error stated ( The system cannot find the path specified: D:/Jobs/) Can someone help me out on this?...is it im using the nuke 6.3v4?...
Thanks
Quote: And get rid of the (hard to see) space after the second %s.
Only one thing what i realized. If i run the script with Nuke in terminal mode (-t) as a subbproccess, after everything copied well, just the new file paths aren't refresh to the copied location in the new nodes. After many hours I didn't find the solution.
Do you (or anybody) have any ideas?
Thanks
RSS feed for comments to this post