Creating write nodes

Need a little help with creating write nodes and filetypes.
Below is a simplified version of what i am trying to do: creating a write node and set its filetype by the use of a dictionary:

Code:

d = dict({'t1': 6, 't2': 11})
nuke.createNode('Write','file_type d[t1]',True)


No matter what dict entry i use, the filetype is always set to dpx. What gives?? t1 should translate to 6 which in turn would be .jpg….

No Responses to “Creating write nodes”

Post a Comment