Yesterday , I came up with method for assigning a list of items as value for a dictionary keys, so that every key has its own unique list. And all this is generated on the fly when nuke is run in terminal mode.
The dictionary is set of Write nodes in the nuke script and list items are its various attributes that can be used at the time of rendering from selected write node of the nuke script. I piped this dictionary to my GUI so that I can fill the options before the user submit it to render nuke script in batch mode.
6: for index,each in enumerate(allWriteNodes):
8: for wNode in writeNodes:
9: for eachAttrib in ['first','last','file','file_type','channels','use_limit']:
Blog, Website Content, VFX Showreel work & Tools & Scripts by Sanjeev Kumar is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.