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


maur_2005 posted Wed, 13 October 2021 at 10:26 PM

I am making a script that hides the hair of the figures and I was thinking, how can I know if a figure is hair? Some hairs have the word "Hair" in their names but some don't, so how can I make something more generic?

for fig in scene.figures():
   name=fig.Name().lower()
   if name.find("hair")
      fig.SetVisible(0)