Forum: Poser Python Scripting


Subject: Is there any way to know if a figure is hair?

maur_2005 opened this issue on Oct 13, 2021 ยท 14 posts


structure posted Tue, 26 October 2021 at 8:05 PM Forum Coordinator

adp001 posted at 1:32 PM Mon, 18 October 2021 - #4429062

structure posted at 12:27 AM Sat, 16 October 2021 - #4428982

so after some experimentation - it seems that the ParentActor of a figure is always the "Body" actor.


Use figure.RootActor(). It's made for this :)

import poser

scene = poser.Scene()
figures = scene.Figures()

for figure in figures:
    print(figure.Name(), figure.RootActor().Name())


output :

Victoria4 Body
Hair Body

Locked Out