Hello,

I'm trying to create a read node, read certain metadata, then delete the
read node. I'm getting a valid result, but also a ValueError in
readviewscheck.py. Is there a better method I should be using? sample code
& error below.

# print metadata from exr on disk
filePath='/path/to/some.exr'
readNode = nuke.createNode('Read', inpanel=False)
readNode['file'].setValue(filePath)
tc = readNode.metadata('input/timecode')
print tc
nuke.delete(readNode)
####

# Result: 16:52:07:01
Traceback (most recent call last):
File
"/Applications/Nuke10.0v4/Nuke10.0v4.app/Contents/MacOS/plugins/nukescripts/readviewscheck.py",
line 98, in <lambda>
QTimer.singleShot(0, lambda: checkReadNodeViews(read))
File
"/Applications/Nuke10.0v4/Nuke10.0v4.app/Contents/MacOS/plugins/nukescripts/readviewscheck.py",
line 68, in checkReadNodeViews
views = getViews(read)
File
"/Applications/Nuke10.0v4/Nuke10.0v4.app/Contents/MacOS/plugins/nukescripts/readviewscheck.py",
line 36, in getViews
if read['disable'].value():
ValueError: A PythonObject is not attached to a node


Regards,
Brian
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to