odf opened this issue on Oct 27, 2008 · 13933 posts
lesbentley posted Tue, 30 August 2011 at 10:12 PM
For those who do want to use PMD injections, and as it seems that the Nerd3D is inaccessible to some, here is the abridged "Readers Digest" version of how to make PMD Injections.
Start with a figure that contains the morphs you want to distribute, and only those morphs. I use "Morph Manager 4" or a cr2 editor to strip all the morphs out of a figure. Then specifically add those morphs I want to distribute.
Let's assume you have an FBM where the morph is named "Sexy_Sady".
With your figure loaded in Poser, make sure that "Use external binary morph targets" is selected in your General preferences. Save the figure to your Figures library pallet with the name you want to use for the injection, in this example we'll use "Sexy_Sady".
Directly under the 'libraries' folder create a folder named "!YourName". Go to the folder where you save Sexy_Sady, and copy the "Sexy_Sady.pmd" file, paste it in the "!YourName" folder.
Now use a text editor to create the INJ pz2. The pz2 will look like this:
{
version
{
number 6
}
injectPMDFileMorphs :Runtime:libraries:!YourName:Sexy_Sady.pmd
createFullBodyMorph Sexy_Sady
attachFBMdial Sexy_Sady
}
The first line after the version block gives the instruction to load the morphs from the PMD file. The next line says to create a valueParm (FBM) channel in the BODY named "Sexy_Sady". The next line after is used to slave all the individual morphs to the valueParm Channel.
That is all you need to load the morphs, but if you want the FBM to load expressed or set the min and max values for the FBM, you need to explicitly code those things into the pz2. In the next example I have added code to load the morph expressed and to force the limits between zero and one.
version
{
number 6
}
injectPMDFileMorphs :Runtime:libraries:!YourName:Sexy_Sady.pmd
createFullBodyMorph Sexy_Sady
attachFBMdial Sexy_Sady
actor BODY
{
channels
{
valueParm Sexy_Sady
{
forceLimits 1
min 0
max 1
keys
{
k 0 1
}
}
}
}
}
That's the basics of it the way I do it. Nerd suggests that you put the PMD file in the same folder as the pz2. In that case you would leave the path out of the first line and just use the file name, eg "injectPMDFileMorphs Sexy_Sady.pmd". I prefer to use a dedicated folder for the PMD files. Note that these files only work in P6 or above, and you should use the version "number 6" even if you produced the file in a later version, is to prevent a version error alert.
Personally I hate making PMD injections, I find them a lot more work than standard delta injections, but some would disagree with me there.