Forum: Poser Python Scripting


Subject: Dumb question of the day list unpacking

grichter opened this issue on Feb 03, 2011 ยท 5 posts


adp001 posted Thu, 03 February 2011 at 1:50 PM

Because Poser Python is somewhat outdated (even with P8), try this:

<pre style="font-family:'courier new', courier;">

ar=[1.234, 2.345, 3.456] >>> ar [1.234, 2.3450000000000002, 3.456]

a,b,c=tuple(ar) >>> a 1.234 >>> b 2.3450000000000002 >>> c 3.456