Forum: Poser - OFFICIAL


Subject: Antonia - Opinions?

odf opened this issue on Oct 27, 2008 · 13933 posts


SteveJax posted Thu, 17 February 2011 at 6:08 PM

Quote - @fivecat: Unfortunately, morph channels cannot be created via pose files. At least that's what the gurus keep telling me.

I don't know what Guru's you've been talking to but you CAN call the Python script to create those channels from within your PZ2 file. That's what I do when injecting PMD Morphs. Here's an example of the Pose and the python script:

BenFBM.PZ2:
{
version
{
number 6
}
#---------------------------------------------------------------------------------------------------
# Run a python script to pre-create the morph target channels so they are created in the right place
# (Poser 6 first release doesn't add the morphs in the correct order with the injectPMDFileMorphs command)
#---------------------------------------------------------------------------------------------------
runPythonScript ":Runtime:!PMD:Ben:addBenTargetParms.py"
injectPMDFileMorphs ":runtime:!PMD:Ben:BenFBM.pmd"
createFullBodyMorph Tone

}

addBenTargetParms.py:
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 = ["chest", "abdomen", "neck", "rCollar", "rShldr", "rForeArm", "lCollar", "lShldr", "lForeArm", "rThigh", "rShin", "lThigh", "lShin"]
morphList1 = ["Tone"]

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)*

* *

Quote - I like the PMD idea, IF it was compatible with DS.  There are a hell of a lot of DS users out there.  Personally, I don't give a flying flip about DS.  But, OTOH, I don't want to alienate them either by making a morph set that only works in Poser (or the reverse,

DS Users may not want you to believe it, but they DO have a DS Script that will load PMD morphs just fine.