Forum: Poser Python Scripting


Subject: Dumb question of the day list unpacking

grichter opened this issue on Feb 03, 2011 · 5 posts


markschum posted Thu, 03 February 2011 at 1:07 PM

use an index

print  len(incolorvalue)

r = incolorvalue[1]

g = incolorvalue[2]

b = incolorvalue[3]

I dont remember offhand if the index starts at 1 or 0 but should be easy to check

www.python.org and get the manuals