Forum: Poser Python Scripting


Subject: Working w/ a 2 column array?

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


bagginsbill posted Sat, 02 May 2015 at 4:20 PM

Note:
If you were starting with two separate lists to begin with, you can skip making the list of pairs. The built-in function "zip" will iterate over two or more lists, giving you parallel elements from each - kind of like a zipper bringing the teeth from the two sides together.

for p, c in zip(listOfParents, listOfChildren):

    p.SetParent(c)


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)