Forum: Poser Python Scripting


Subject: Working w/ a 2 column array?

z opened this issue on May 02, 2015 · 8 posts


z posted Sat, 02 May 2015 at 11:07 AM

This is my first time using a two column array.

I think I’ve successfully built an array where the first column is one actor, and the second column is a related actor.  Now I want to loop through the list and set the parent of the first actor to the second actor. 

But I don’t know what the syntax would be to refer to the two columns of my list.

Something like this:

ActorList =[]

ActorList.append ([actor1,actor2])

For EachActor in ActorList:

actor1.SetParent(actor2)  ----- of course that is not the right syntax, what would be?