Hi All,
I've been fighting with this for a bit and I'm sure I'm just missing
something simple... I'm creating a node and loading a file in it, then
I try and grab the metadata for the frame rate and filereader but
nothing exists.
ie.:
def makeNukeQTReadNode(path, location, name):
xpos = location[0]
ypos = location[1]
with nuke.Root():
readNode = nuke.createNode('Read', 'file '+path+' name '+name)
readNode['xpos'].setValue(xpos)
readNode['ypos'].setValue(ypos)
return readNode
node = makeNukeQTReadNode(path, location, name)
nodeFileType = node.metadata()['input/filereader']
nodeFPS = node.metadata()['input/frame_rate']
This gives me an error that the metadata doesn't exist when I run it.
I'm running this from a PythonPanel class if that makes a difference
and I'm on Nuke 6.2v1
Cheers,
Colin Jenken
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python