for i in nuke.selectedNodes():
i['disable'].setExpression('$gui')
Howard
>________________________________
>From: Daniel Short <[email protected]>
>To: Nuke Python discussion <[email protected]>
>Sent: Friday, 19 August 2011, 17:59
>Subject: Re: [Nuke-python] Disable Node During Render
>
>
>Thanks Ron, but I guess my question is, what would that python script be?
>
>And is there a variable I could define to make the selection of effected nodes
>simple?
>
>Dan
>
>
>
>On Thu, Aug 18, 2011 at 10:35 AM, Ron Ganbar <[email protected]> wrote:
>
>You can drop an expression into the disable knob that uses the $gui statement.
>>
>>It will give you 1 if the gui is on and 0 if it's off. so a 1-$gui will give
>>you what you are after. That is if you render on a farm or through a terminal.
>>Otherwise you can use the Python tab in the Write node and call up a Python
>>script in the before render text box.
>>
>>Ron Ganbar
>>email: [email protected]
>>tel: +44 (0)7968 007 309 [UK]
>> +972 (0)54 255 9765 [Israel]
>>url: http://ronganbar.wordpress.com/
>>
>>
>>
>>On 18 August 2011 15:28, Daniel Short <[email protected]> wrote:
>>
>>Hello all,
>>>I am wondering if there is a way to script a node to be disabled during
>>>rendering.
>>>
>>>This is similar to After Effects option to make a "guide layer", which you
>>>can reference while working in the script, but does not render. It's quite
>>>handy for a number of things.
>>>
>>>Thanks
>>>Dan
>>>
>>>--
>>>Daniel Short
>>>www.danisnotshort.com
>>>215.859.3220
>>>
>>>_______________________________________________
>>>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
>>
>>
>
>
>--
>Daniel Short
>www.danisnotshort.com
>215.859.3220
>
>_______________________________________________
>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