In new-ish Nukes (6.1 onwards, I think) you can use the following
members of the Node class:
viewer = nuke.toNode('Viewer1')
print viewer.hasError() # error on this node
print viewer.treeHasError() # error on this node or its input
In older Nukes, you should still also be able to use the older "error"
function, which does the same thing as the new "treeHasError":
viewer = nuke.toNode('Viewer1')
print viewer.error()
- Chris
On 10/09/11 06:06, Frank Rueter wrote:
actually "error" is expression syntax, so something like this should work:
if nuke.expression( 'Read1.error' ):
print 'oops'
On Sep 10, 2011, at 5:45 AM, Olivier Jezequel wrote:
Hiya,
I am still trying to build a little script that evaluate missing frames. I want
to use the command 'error' in a python script to make an action but didn't find
doc on it.
i think it is a tcl, when you type error in a disable it will return 1 or 0
depending if there is error or not.
How do i get nuke to evaluate the error in a python script ?
that kind of format :
if error:
print 'oups'
cheers
Olivier
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
Chris Bevan, Senior Software Engineer
The Foundry, 6th Floor, The Communications Building
48 Leicester Square, London, WC2H 7LT
Tel: +44 (0)20 7968 6828 | Fax: +44 (0)20 7930 8906
Web: www.thefoundry.co.uk
The Foundry Visionmongers Ltd
Registered in England and Wales No: 4642027
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python