Forum: Poser Python Scripting


Subject: Figure Number in PoserPython?

Cage opened this issue on Oct 28, 2005 ยท 8 posts


Cage posted Fri, 28 October 2005 at 2:54 PM

There's a complication with the suggested approach. I can't make any comparative statements to determine what number is addended to a body part, because PoserPython returns values in computerese. :) It's internal way or thining about things doesn't seem to resemble any of the ways it annotates those thoughts. (Kind of reminds me of myself, that way....)

So, fool that I am, I'm stuck. Now I need to ask if there is a way to convert this list of Actor objects to a list of body parts that can be read. I assume that's some kind of value to string conversion, but I'm not sure these listed parts count as integer values, so I have no idea how to approach the matter....

Am I missing an obvious approach?

Code:

#Find internal figure number----(Thanks, mkrueger!)---------------------------
actors = poser.Scene().CurrentFigure().Actors()
print actors

Result:

[, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] Well, the list doesn't show up in the post, so I'm addending a text file to the next response....

Message edited on: 10/28/2005 14:56

===========================sigline======================================================

Cage can be an opinionated jerk who posts without thinking.  He apologizes for this.  He's honestly not trying to be a turkeyhead.

Cage had some freebies, compatible with Poser 11 and below.  His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.