Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 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.
Body actor stands for the figure. The body actor has no other task (also no geometry). Probably the programmers have included the body actor as a child in the chain, so that only actors are included and all objects can be edited with the same interface methods.
As you can learn from the manual, every actor has a method "ItsFigure", which helps you to find out to which figure it belongs.
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
Hi folks, I'm trying to select all figures in a Grouping and I need your help with this code
It doesn't work, what's wrong?