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 Thu, 14 October 2021 at 7:09 AM Forum Coordinator

HartyBart posted at 5:15 AM Thu, 14 October 2021 - #4428909
if figure:
    head_parts = figure.Actor("Head").Children()
    for target in head_parts:
        targetname = target.InternalName()
        if "Brow" not in targetname and ("Eye" in targetname or "eye" in targetname) :
            [then do something]
You may need to edit this code since some hairs contain a part called brow, or has the word brow in it. 

Locked Out