This is a bit loops through all RotoPaint nodes and sets the round attribute 
(fairly crude - doesn't do any checks).
It doesn't redraw the node properly, but after re-opening the panel the knob 
should be checked. Haven't really test it much but hope it helps.

import nuke.rotopaint as rp
for node in nuke.allNodes( 'RotoPaint' ):
        root = node['curves'].rootLayer
        strokes = [ c for c in root if isinstance( c, rp.Stroke ) ]
        for s in strokes:
                attr = s.getAttributes()
                attr.set( 'str', True )



On Jul 12, 2011, at 4:48 PM, [email protected] wrote:

> Thanks frank, but I want to change the value of round to pixel = 1 for 
> multiple paint nodes at a time, I know the changing default values, but I 
> need to change the value for selected paint nodes clone source round to pixel 
> at a time. 
> 
> Sent from my Nokia phone
> -----Original Message-----
> From: Frank Rueter
> Sent:  12/07/2011 10:06:38 am
> Subject:  Re: [Nuke-users] Script for cloning source round to pixel
> 
> just select them all in the curves knob and click on the "round" checkbox.
> 
> On Jul 11, 2011, at 11:10 PM, [email protected] wrote:
> 
>> 
>> Hi ,
>> 
>> Is there any script for all paint storkes change to round to pixel in total 
>> script. 
>> 
>> Thanks
>> Balaji 
>> Sent from my Nokia phone
>> _______________________________________________
>> Nuke-users mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
> 
> 

_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to