Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
I wrote this a while ago and it seems to work ok, I was kinda hoping someone had a better solution though.
import poser
scene=poser.Scene()
for act in scene.Actors():
if act !=None:
if (not act.IsBase()) and (not act.IsDeformer()) and (not act.IsZone()) and (not act.IsLight()) and (not act.IsCamera()) and (not act.IsBodyPart()):
try:
if act.Parent().InternalName().lower()[0:4]=='head':
print 'probably hair', act.Name(),'n'
if act.ConformTarget().lower()[0:4]=='head':
print 'probably hair', act.Name(), 'n'
except:
pass
Locked Out
Thanks.
I got a reply from SM in the meantime that points out that all hair props have a Actor.InternalName() that starts with "figureHair". Sometimes the solution stares you in the face :)
Paolo
https://www.preta3d.com
FB: https://www.facebook.com/RealityPlugIn
Tw: @preta3d
G+:
https://plus.google.com/106625816153304163119
The
Reality Gallery: https://reality-plug-in.deviantart.com
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.
Is there a reliable way of detecting if and Actor refers to a hair prop. IsHairProp() surprisingly doesn't work (it returns False for Hait props) and I could not figure out any other option.
Any help will be greatly appreciated.
Paolo
https://www.preta3d.com
FB: https://www.facebook.com/RealityPlugIn
Tw: @preta3d
G+: https://plus.google.com/106625816153304163119
The Reality Gallery: https://reality-plug-in.deviantart.com