Hello!

I did a python script button on a group to change the color of a constant
that is inside the same group. Let's say that the constant is blue and with
the color it gets red.
Everything works fine.
I exported the group as a gizmo and reimported to a new scene. The color
when I import it is blue. I use the button to set the constant to red and
save the scene.
When I reopen the scene the constant is blue again.
If I do the same with the group everything is working perfectly.
This is the code for when I press the button (the same happens with tcl
code):

[CODE]g = nuke.thisNode()

g.begin()

nuke.toNode('Constant').knob('color').setValue([1, 0, 0, 1])

g.end()
[/CODE]

Any idea?

Thanks
-- 
*Luca Fiorentini - 3D Lighting Artist*
My Showreel <http://www.vimeo.com/lucafiorentini/reel> - My
blog<http://lucafiorentini.wordpress.com>- My
Flickr <http://www.flickr.com/photos/lucafiorentini>
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to