Forum: Poser Python Scripting


Subject: How to select all figures in a group

maur_2005 opened this issue on Feb 24, 2020 ยท 11 posts


adp001 posted Tue, 25 February 2020 at 7:35 AM

structure posted at 2:29PM Tue, 25 February 2020 - #4381745

"grouping 1" is not an actor, (you can check this by looking in the props dropdown) it cannot be selected using SelectActor,

???

Into a fresh loaded Poser scene I added 2 Groups. And parented a prop to the second Group.


print [ac.Name() for ac in sc.Actors()]


gives me:

[u'UNIVERSE', u'FocusDistanceControl', u'GROUND', u'Grouping 1', u'Arch_1', u'Light 1', u'backlight', u'aera', u'x 1', u'Main Camera', u'Aux Camera', u'Posing Camera', u'Dolly Camera', u'Left Camera', u'Right Camera', u'Top Camera', u'Bottom Camera', u'Front Camera', u'Back Camera', u'Face Camera', u'LHand Camera', u'RHand Camera', u'Shadow Cam Lite 1', u'Shadow Cam Lite 4', u'Shadow Cam Lite 2', u'Shadow Cam Lite 1', u'Grouping 2']

sc.Actor("Grouping 2")

returns an actor and I can select this actor.