That's really smart, thank you!

On Wed, Mar 21, 2012 at 2:49 PM, Ivan Busquets <[email protected]>wrote:

> Haven't tried this myself, but maybe you could use a beforeRender
> callback, and check for <node>.treeHasError() on your write node(s).
>
>
>
> On Wed, Mar 21, 2012 at 2:44 PM, Christopher Horvath <
> [email protected]> wrote:
>
>> Hey,
>>
>> Does anybody have thoughts or experience with this? We're realizing that
>> we'd like to generically exit batch nuke on any error, not just Read node
>> errors, which makes the prospect of handling it in the python wrappers
>> around Nodes untenable.
>>
>> Thanks again,
>>
>> Chris
>>
>> On Tue, Mar 20, 2012 at 4:56 PM, Christopher Horvath <
>> [email protected]> wrote:
>>
>>> Howdy Nuke Python,
>>>
>>> I need to make Batch Nuke 6.3 on Linux exit with a return code that is
>>> not 0 when a Read node encounters a missing file. We only want to enable
>>> this in batch mode, but not in interactive mode. I was hoping there'd be a
>>> command-line option to use with nuke -x, but the documentation does not
>>> list anything.
>>>
>>> As we have (like probably everybody on this list) a wrapper around the
>>> Read nodes which construct the filenames procedurally, we can cause Nuke to
>>> exit using python's sys.exit( -1 ), if that's allowed - but if there's an
>>> official way to do this, I'd prefer to do it "right".
>>>
>>> Does anyone know how I can do this?
>>>
>>> Thanks,
>>>
>>> Chris
>>>
>>> --
>>> I think this situation absolutely requires that a really futile and
>>> stupid gesture be done on somebody's part. And we're just the guys to do it.
>>>
>>
>>
>>
>> --
>> I think this situation absolutely requires that a really futile and
>> stupid gesture be done on somebody's part. And we're just the guys to do it.
>>
>> _______________________________________________
>> 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
>
>


-- 
I think this situation absolutely requires that a really futile and stupid
gesture be done on somebody's part. And we're just the guys to do it.
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to