momodot opened this issue on Jan 02, 2009 · 20 posts
LostinSpaceman posted Sun, 04 January 2009 at 4:25 PM
Here it is:
Quote -
import poser
scene = poser.Scene() #---------------------------------------------------------------------
# We need to pre-create specific morph channels
# In this case, there are two lists because the NoGenFBMs must exist on the hip and chest only.
# Other morphs are created on all the other main body parts
#---------------------------------------------------------------------
actorList1 = ["hip", "chest"]
morphList1 = ["Muscles"]actorList2 = ["Chest", "Abdomen", "Neck", "upNeck", "Head", "rCollar", "rShldr", "rForeArm", "lCollar", "lShldr", "lForeArm", "rButtock", "rThigh", "rShin", "lButtock", "lThigh", "lShin"]
morphList2 = ["Muscles"]figureToChange = scene.CurrentFigure()
for actrName in actorList1:
actr = figureToChange.Actor(actrName)
if (actr) :
for morphName in morphList1:
curParm = actr.Parameter(morphName)
if (curParm == None) :
actr.SpawnTarget(morphName)for actrName in actorList2:
actr = figureToChange.Actor(actrName)
if (actr) :
for morphName in morphList2:
curParm = actr.Parameter(morphName)
if (curParm == None) :
actr.SpawnTarget(morphName)
This is for a figure that uses geometry switching to turn genitals on and off. Just eliminate the extra actorList1 parts for a figure without the geometry switching.