Use 0xff for black.

-Nathan



From: sh4dow 
Sent: Tuesday, February 26, 2013 8:19 AM
To: nuke-python@support.thefoundry.co.uk 
Subject: [Nuke-python] Re: tile_color always returning 0?

I actually found the way to figure this out. The default colors can be gotten 
from the preferences (see the actual tab "Node Colors" and hover over those 
knobs) by using: 

      Code:  

      nuke.toNode("preferences")['NodeColour10Color'].value()
     



One thing to note (I haven't found any information on this but at least 
according to my tests that is a fact):
If one tries to set the tile_color to black ( int('%02x%02x%02x%02x' % (0, 0, 
0, 1), 16) ), Nuke will color it red upon saving and reopening the comp. Values 
"1, 1, 1, 1" work just fine.


--------------------------------------------------------------------------------
_______________________________________________
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
_______________________________________________
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