instead of disabling the Write, try using a Switch node that switches from the
Write node to a Constant if the Write node has errors.
I remember this setup working for me in the past
On Sep 14, 2011, at 12:21 AM, Olivier Jezequel wrote:
> Thanks guys, that helps a lot.
> I think mostly the problem that block all of those to work is the way the
> render is send to the farm.
> using nod = nuke.thisNode() and if nod.treeHasError() should do it but it is
> not evaluate in the farm.
> In fact even keyframing the disable of my write node is not take into account
> in the farm. So i can't make my script to work.
> We tried to ad the tag --cont that is is suppose to ignore error frames into
> the normal render but that didn't work neither when sent to alfred.
> so depressing
> thanks for the answers
> olivier
>
> Frank Rueter wrote:
>> ha, even better. I forgot a bout those
>>
>>
>> On Sep 12, 2011, at 8:57 PM, Chris Bevan wrote:
>>
>>
>>> 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
>>>
>>
>> _______________________________________________
>> 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
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python