Forum: Poser Python Scripting


Subject: All null string group names and inability to programmatically add new groups?

rrkknight3 opened this issue on Jul 04, 2008 · 4 posts


rrkknight3 posted Fri, 04 July 2008 at 7:43 PM

I've been trying various things with groups in Poser Python (both Poser 7 and Poser Pro) and I'm puzzled.  I'd appreciate hearing any observations that the forum members might have.

Let's say that the current actor is the head of the mannequin figure.  Then this code

actor = poser.Scene().CurrentActor()
geom = actor.Geometry()
print geom.Groups()

produces

['', '']

while launching the Grouping Tools shows that there are two groups named "head" and "neck".

Shouldn't that call to Groups produce the same thing?

On the other side, I don't see a way to produce new groups on the fly, either.  The Polygon method IncludeInGroup appears to require that the group already exist.  Or at least, I get

poser.error: No group bit for specified group name. No such group for this actor?

when I try.