uploadPresets

Allows users to send their custom presets to a server file with a simple right click option, while tracking who made what changes.

Updated: 11 January 2016

Author: MatteHue

Compatible Nuke versions: All

Compatibility: Windows 64

Allows user presets to be split into two files, one local and one server-side. Users can have their own separate presets, and can choose to upload them by right clicking the properties panel of the node and choosing 'Upload Node Presets'. Only presets for the selected node will be uploaded (Note: There is an issue with any presets on other nodes that share the exact same name as any preset on the selected node also being uploaded. This will hopefully be fixed in the next version).

Any transferred presets have commented lines recording when the preset was added, and by which user.

 

To install:

  1. Put uploadPresets.py into your plugin path
  2. Create a user_presets.py file, and place it in your desired directory. Make sure it only has the following two lines it:
    1
    2
    
    import nuke
    def nodePresetsStartup():
  3. On line 8 of the uploadPresets.py, change the serverPath string to the path for the new file (including filename).
  4. Add the following into your menu.py file:

 

1
2
import uploadPresets
nuke.menu('Properties').addCommand( 'Upload Node Presets', uploadPresets.uploadPresets )

 

To Use:

  1. Add a preset to any node using the spanner icon on the nodes properties bin.
  2. Right click the node and select 'Upload Node Presets'.

Note: Deleting a 'server' preset through the spanner icon will not remove it from the file, and it will still be accessible to other users. To remove it entirely, you will have to manually remove the line from the user_presets.py file.

 


If anyone wants to learn how the code works, I go through a breakdown here: http://gizmosandgames.com/2016/01/10/upload-presets/

Enjoy.

Sign in or register to download or rate.