# FBMToActors.py # [by svdl] # Copies Full Body Morph values from the BODY to the individual body parts # and resets the Full Body morph values to zero # Warning: some actor morphs are "masters" themselves # (the breast morphs on the chest are masters to the breast morphs on the collars, for instance) # and this will result in the morphs being applied at "double strength" # I haven't found a neat way to fix this yet, I'd love to have the script figure out what "master" a morph # channel has and so automatically apply only the right settings. I don't know if it's possible in PoserPython import poser scene=poser.Scene() fig=scene.CurrentFigure() if fig==None: raise "No figure selected" figBody=fig.ActorByInternalName("BODY") for parm in figBody.Parameters(): if parm.IsValueParameter(): parmValue=parm.Value() parmName=parm.InternalName() for act in fig.Actors(): if (act!=figBody): try: act.Parameter(parmName).SetValue(parmValue) except: pass parm.SetValue(0)