Forum: Poser - OFFICIAL


Subject: Can READSCRIPT used in a CR2 file,import PZ2 MAT/texture file ?

LBJ2 opened this issue on Feb 21, 2008 · 5 posts


LBJ2 posted Thu, 21 February 2008 at 8:00 AM

Hiya everyone

Since this thread was quite a success :)
Can READSCRIPT used in a CR2 file,import PZ2 file character?
http://www.renderosity.com/mod/forumpro/showthread.php?thread_id=2731245

The result of the "1 click person CR2 file " can be seen here for those interested:
http://www.renderosity.com/mod/gallery/index.php?image_id=1622184
Thanks to everyone for helping me with that.

I am a Daz Studio v1.8.2.1 user i better mention from the start.

Now that it all went so well and fast heh.. I hope some of the geniuses might participate and advice me a bit on this similar matter too? :)

What if i wanted to make the "1 click CR2 file" ... that could apply a full texture too,
using readScript from within the CR2?

Would that be handled in approx. the same way?

{
   version
   {
      number 4.01
   }
   readScript ":Runtime:libraries:Pose:Julla:MY-MAT.pz2"
}

I studied the content of a PZ2 MAT pose file in a editor.
It seems complicated with all the references to link certain JPEG files, to certain limbs.

I know about the 4000x4000 textures sold as merchant resources, so that would be needed for sure. And i know they are needed to make a MAT-file.pz2.

BUT..

A MAT-file.PZ2 looks too advanced to be created manually in a text editor...

What software generate the MAT-file.pz2 content?

Maybe some efficient 3rd party utils? Or utils working for both Poser and D|S?

What is good and what is bad? What software/utils do people use for that purpose?

That was a lot of questions haha..

Best Regards
LBJ Denmark
 


LBJ2 posted Fri, 22 February 2008 at 9:38 AM

Hiya

Noone knows?

Or is it my Yak deodorant :) ??

Best Regards
LBJ Denmark


Eshal posted Fri, 22 February 2008 at 10:17 AM

Hi there,

I think the easiest way to make a mat pose is to grab one that for the figure you are working with and replace textures with yours.

Just find the texture name in the pz2 file:
[code]         textureMap "RuntimetexturesTexture folder nameTexture_name.jpg"
 [/code]

Got to the find/replace option in your editing programs and replace it with the texture you want to go in place of it.

It only takes a little while and it helps you find the parts of the body in the pz2.

Regards

Eshal

I'm a genetically enhanced blonde...what's your excuse? ~Eshal~


LBJ2 posted Fri, 22 February 2008 at 10:59 AM

Quote - Hi there,

I think the easiest way to make a mat pose is to grab one that for the figure you are working with and replace textures with yours.

Just find the texture name in the pz2 file:
[code]         textureMap "RuntimetexturesTexture folder nameTexture_name.jpg"
 [/code]

Got to the find/replace option in your editing programs and replace it with the texture you want to go in place of it.

It only takes a little while and it helps you find the parts of the body in the pz2.

Regards

Eshal

Hiya  and thanks for the reply I found a little utility script at Daz forum called "Poser MATexporter for Daz Studio" .
Of what people write its almost the same as a util called ShaderSpider for Poser.

Poser Mat exporter for D|S works fine and is easy to work with as soon as one learn to select the surfaces 

I export the MAT from a excisting character in P5 format(PZ2 file).
It has a P6 export format too called *.MC6, but i have a feeling that D|S might not like that format.
So i use P5 PZ2 format.

Its still my goal to make it all happen from a 1 click CR2 file.

The CR2 file now looks like this:

Code:
{
   version
   {
      number 4.01
   }
   readScript ":Runtime:libraries:Character:DAZ People:Victoria 4.2.cr2"
   readScript ":Runtime:libraries:!DAZ:Victoria 4:Deltas:InjDeltas.V4Morphs++All.pz2"
   readScript ":Runtime:libraries:!DAZ:Victoria 4:Deltas:InjDeltas.MuscleAll.pz2"
   readScript ":Runtime:libraries:Pose:Julla:MYTOON.pz2"
  
   readScript ":Runtime:libraries:Pose:Julla:MYMAT_P5.pz2"
}
 

"Mytoon.pz2"(the custom character) is applied fine(IF i add a ":1" at the end of each line starting with Actor, in th PZ2)

BUT...

MYMAT_P5.pz2(the texture for thee character)... will not apply using readScript.

But it works fine if i apply it manually.

SOSO... i examined the "MYMAT_P5.pz2" in a text editor.
But ...There is no lines with the "Actor" tag in it.
So nowhere to apply a ":1".....

But i bet its almost the same type of problem.

So the question is......

What does the "Poser Mat exporter for DS" forget to put in it's PZ2 file?

To make i work by calling the PZ2 from within a CR2, using readScript command???? 

Is there some kinda of reference similar to ":1" that could be essential for it to work?
 

Best Regards
LBJ Denmark


Eshal posted Fri, 22 February 2008 at 12:00 PM

Hmm the only thing I can think of is saving the cr2 figure when you have set the materials and then hacking the code out of that an placing it in a pose.
It certainly has me stumped.

Regards

Fiona

I'm a genetically enhanced blonde...what's your excuse? ~Eshal~