Forum: Poser - OFFICIAL


Subject: Help writing .pz2 to load separate INJ poses plse.

momodot opened this issue on Aug 22, 2009 · 7 posts


momodot posted Sat, 22 August 2009 at 11:40 AM

I just bought a set of custom morphs breast morphs for V4 which contains the morph data for each of the morphs in a separate .pz2 pose file. How would I write a single .pz2 that would load all of these separate .pz2 files with one click? Thank you.



andolaurina posted Sat, 22 August 2009 at 11:52 AM

Are they all being loaded into separate channels or the same channel when applied?

My RMP Store Freebies

Poser Ambassador; Poser 11 & 12 / DS4 / Metasequoia / Silo / Zbrush / realityPaint / UVMapperPro / XD 4 / Ps CC / Fw / Ai / Painter 12 / Clip Studio Paint / Comipo / Reality 3 / Windows 10 / Units = Poser Native


momodot posted Sat, 22 August 2009 at 12:03 PM

I believe the morph data is in the separate .pz2 files and they load into separate "Community Channels" on the V4 .cr2... I guess each of these community channels are linked to a master in the body element as a FBM?

Anyway, after loading the dozen or so .pz2 files there are a dozen named morphs on the chest body part in "INJection Channels/Community" and matching dials on the "Body" element.



andolaurina posted Sat, 22 August 2009 at 12:23 PM

OK, here's an example.  Let me know if this does/doesn't work:

You'll need to copy and paste the code below into notepad and save as a text file.  Then change the extension to pz2.

You'll need to modify the "readScript" lines below to reference the pz2 files for each of the breast morphs you have.  You'll have to do that for the top section and the bottom section (below defaultPickBODY).


{
    version
    {
        number 4.01
    }
    readScript ":Runtime:libraries:[remainder of file name 1].pz2"
    readScript ":Runtime:libraries:[remainder of file name 2].pz2"
    figure
    {
        defaultPick BODY
    }
    readScript ":Runtime:libraries:[remainder of file name 1].pz2"
    readScript ":Runtime:libraries:[remainder of file name 2].pz2"
}

My RMP Store Freebies

Poser Ambassador; Poser 11 & 12 / DS4 / Metasequoia / Silo / Zbrush / realityPaint / UVMapperPro / XD 4 / Ps CC / Fw / Ai / Painter 12 / Clip Studio Paint / Comipo / Reality 3 / Windows 10 / Units = Poser Native


momodot posted Sat, 22 August 2009 at 12:51 PM

Thank you, andolaurina. Perfect. Took a minute or two to do the pose in edit pad and it worked exactly right. The poses list by alphabetical rather than in the order I placed them in the .pz2 so if I want to retain groups I should place each set I want as a group in a separate load file or else just drag them into the order I want on the parameters panel once they are loaded. Great help. Thank you.



andolaurina posted Sat, 22 August 2009 at 2:17 PM

Excellent!  Glad I could help!  :biggrin:

My RMP Store Freebies

Poser Ambassador; Poser 11 & 12 / DS4 / Metasequoia / Silo / Zbrush / realityPaint / UVMapperPro / XD 4 / Ps CC / Fw / Ai / Painter 12 / Clip Studio Paint / Comipo / Reality 3 / Windows 10 / Units = Poser Native


andolaurina posted Sat, 22 August 2009 at 2:29 PM

Ah, one more thing... I think the reason that the channels list in order is because the person who originally designed the PZ2 files chose to inject them into channels in alphabetical order.  If you're feeling adventurous, you can go into the individual pz2 files and change the channels into which each pose injects.  MAT Pose Editor (by Mr. X; it's free) can help with that. 

That's kind of a pain in the butt (but not terribly time consuming), unless you're distributing it or it really bothers you.  I guess I'm bringing it up if you or someone else is interested in doing this in the future, particularly for something distributable.

Now that I'm thinking about it, another alternative to the PZ2 multi-file read script that you created is to just create a new CR2 (assuming you're not distributing it).  You could get the breast morphs loaded into the CR2 the way you want it...and then save a copy of the entire Figure to your Poser directory.  That way, you can just load the Figure CR2 in the future which will have all the groups and names of the morphs with any edits you've made.

My RMP Store Freebies

Poser Ambassador; Poser 11 & 12 / DS4 / Metasequoia / Silo / Zbrush / realityPaint / UVMapperPro / XD 4 / Ps CC / Fw / Ai / Painter 12 / Clip Studio Paint / Comipo / Reality 3 / Windows 10 / Units = Poser Native