Thu, Jan 9, 5:45 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2025 Jan 09 3:46 am)



Subject: Can READSCRIPT used in a CR2 file,import PZ2 file character?


  • 1
  • 2
LBJ2 ( ) posted Tue, 19 February 2008 at 9:22 AM · edited Thu, 09 January 2025 at 5:44 PM

Hiya

This is about getting the READSCRIPT command in a CR2 file, to import/apply/load
a PZ2 file containing a custom dialed character. I created the PZ2 file with "Poser format exporter".

I downloaded the CR2 from AprilYSH refered to in this thread
http://forum.daz3d.com/viewtopic.php?t=77758

And i modified it to load the V4 Muscle morphs too.

Atm. the v4.2++Muscle.CR2 file content 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"
}
 

The first 3 READSCRIPT works perfect.
It loads v4.2, apply the ++morphs and the muscle morphs.
All by clicking the new V4.2++Muscle.CR2 file icon in Figures "DAZ People".
Very nice.

But the 4th READSCRIPT line above refuse to execute. And i cant figure out why.

What i want it to do at this point is:

Import/apply/load the MYTOON.PZ2 file containing a custom dialed character.
I created the PZ2 file with "Poser format exporter". Its simply a custom dialed character.
Nothing with mats.

If i IMPORT the MYTOON.PZ2, While targeting the v4.2(with ++ and muscle), manually in D|S it works fine.  But i would like the CR2 file READSCRIPT to do it for me.

So...........

Do READSCRIPT have a Import syntax?

Which actually targets the loaded and ready V4.2, and apply a PZ2 custom dial?

I tried this even with MYTOON.PZ" in the correct location... But it wont work..

I think it MIGHT be related to the fact... That the V4.2 isent targeted/Selected
when the MYTOON.PZ2 pose is applied..... im not sure though...

But it would be nice if the CR2 could manage it all.

Who would know if and how to get this to work?

Best Regards
LJB Denmark


lululee ( ) posted Tue, 19 February 2008 at 12:26 PM

Hi LBJ2,
  I salute you on this quest.
Bookmark
cheerio  lululee


LBJ2 ( ) posted Tue, 19 February 2008 at 12:44 PM

Quote - Hi LBJ2,
  I salute you on this quest.
Bookmark
cheerio  lululee

Hiya

What is that supposed to mean lol?

Best Regards
LBJ Denmark


EnglishBob ( ) posted Tue, 19 February 2008 at 12:52 PM

I think she means she wants to know if you get an answer - it beats just typing "bookmark" anyway. :) On the other hand, she may mean "good luck because I don't think you'll get an answer". :D Sorry if I misled you in the DAZ thread; I was sure that would work, but hadn't actually tried it myself.

Quote - I think it MIGHT be related to the fact... That the V4.2 isent targeted/Selected when the MYTOON.PZ2 pose is applied...

If you're saying that the figure isn't selected when the readscript gets to the last line, then further poses won't have any effect. You need a figure selected before a pose can be enacted. I'll experiment a bit before I open my mouth any further. :)


LBJ2 ( ) posted Tue, 19 February 2008 at 1:07 PM · edited Tue, 19 February 2008 at 1:13 PM

Quote - I think she means she wants to know if you get an answer - it beats just typing "bookmark" anyway. :) On the other hand, she may mean "good luck because I don't think you'll get an answer". :D Sorry if I misled you in the DAZ thread; I was sure that would work, but hadn't actually tried it myself. > Quote - I think it MIGHT be related to the fact... That the V4.2 isent targeted/Selected when the MYTOON.PZ2 pose is applied...

If you're saying that the figure isn't selected when the readscript gets to the last line, then further poses won't have any effect. You need a figure selected before a pose can be enacted. I'll experiment a bit before I open my mouth any further. :)

Hiya and thanks for the reply

Im from Denmark and my english isent perfect.. sorry about that LOL.
So i would'nt understand slang or inside jokes or so :)

What you are saying is.

In my CR2 file... i need to run a command that would select the v4.2 .. loaded first in the same CR2.?

Is there a target command that would select the current v4.2?
Because the it would be simple to target the v4.2 in the line before running the PZ2 line..

Or am i out in some NO-NO-shame-on-you questions.. without me knowing about it?

Bets Regards
LBJ Denmark


lululee ( ) posted Tue, 19 February 2008 at 2:07 PM

Hi LBJ2,
   Yes, I am interested in the same info that you are. I am glad you posted that question.
cheerio  lululee


LBJ2 ( ) posted Tue, 19 February 2008 at 2:23 PM · edited Tue, 19 February 2008 at 2:29 PM

Quote - Hi LBJ2,
   Yes, I am interested in the same info that you are. I am glad you posted that question.
cheerio  lululee

Hiya Lulu :)

Thank god. I thought you were making fun of me or something like that haha :laugh:
Try learn Danish language.. and you will know its like japanese haha.
Not similar to english at all.

It scares me a bit to see that you are a 3d clothing manufacturer, joining renderosity in 2002.
6 years ago. Somehow that indicates its a nasty question prolly....
I only worked with Daz for 3 months...

But i fear its not easy to get an answer to the question.
I started the same thread at daz3d.com forum.... and its still silent as the grave :)

First i thought i was asking a forbidden question...
But it might be that its actually so complicated..that not many.. except for the REAL hadcore people would know the answers.

But i hope someone know, and want to share that information with us.

Best Regards
LBJ Denmark


Lucifer_The_Dark ( ) posted Tue, 19 February 2008 at 2:27 PM · edited Tue, 19 February 2008 at 2:28 PM

Have you checked out this thread?

www.renderosity.com/mod/forumpro/showthread.php
I'm not sure how much help it will be  as it's been a while since I last played with readscript, but here's hoping.

Windows 7 64Bit
Poser Pro 2010 SR1


LBJ2 ( ) posted Tue, 19 February 2008 at 2:42 PM · edited Tue, 19 February 2008 at 2:45 PM

Quote - Have you checked out this thread?

www.renderosity.com/mod/forumpro/showthread.php
I'm not sure how much help it will be  as it's been a while since I last played with readscript, but here's hoping.

Hiya and thanks for the reply

Gonna try study the thread you mention.

But by a short look.. it seems the examples they describe use the same syntax as i do in the first pose in this thread..

Gonna take a close look on the thread you mention. Much of it seems more complicated than the suff i mess with though. But thanks for the tip.

Best Regards
LBJ Denmark


Lucifer_The_Dark ( ) posted Tue, 19 February 2008 at 2:52 PM

You're welcome :D Oh by the way I live in England & your written English is much better than some of the people actually born here who should know better.

Windows 7 64Bit
Poser Pro 2010 SR1


LBJ2 ( ) posted Tue, 19 February 2008 at 3:08 PM

Quote - You're welcome :D Oh by the way I live in England & your written English is much better than some of the people actually born here who should know better.

Well thanks lol :)

I kinda feel flattered. I dont have high thoughts about my english lingual skills since im very often being misunderstood in these forums haha.

I noticed your banner ...

Are you THE Anton Kisiel?
Father of Apollo?

Best Regards
LBJ Denmark


icprncss2 ( ) posted Tue, 19 February 2008 at 4:29 PM

Quote - > Quote - Hi LBJ2,

   Yes, I am interested in the same info that you are. I am glad you posted that question.
cheerio  lululee

Hiya Lulu :)

Thank god. I thought you were making fun of me or something like that haha :laugh:
Try learn Danish language.. and you will know its like japanese haha.
Not similar to english at all.

It scares me a bit to see that you are a 3d clothing manufacturer, joining renderosity in 2002.
6 years ago. Somehow that indicates its a nasty question prolly....
I only worked with Daz for 3 months...

But i fear its not easy to get an answer to the question.
I started the same thread at daz3d.com forum.... and its still silent as the grave :)

First i thought i was asking a forbidden question...
But it might be that its actually so complicated..that not many.. except for the REAL hadcore people would know the answers.

But i hope someone know, and want to share that information with us.

Best Regards
LBJ Denmark

Readscript is new ground for most Poser users.  Most long time users can hack Posette's cr2 without even a second thought but V4's is far more complicated. 

Your instructions tell D/S to load the morphs one after the other.  This will probably work if you are using a custom morph that makes no external call to any of the other morphs you are loading and the channels the custom morph is to load to is not already occupied.  If the character morph you are trying to load has external calls for any of the morphs ++ or muscle morphs, it's likely to fail because until D/S has completed reading all the instructions in the Cr2 and implementing them, the morphs the character needs aren't loaded.  If you have Poser, you could load everything up and save the figure to the figures library.  I know there is a morph to cr2 script for D/S but I'm not sure if it will work as you want it in this case. 

Since most of us are still learning the ins and outs of V4's technology the same as you are.


nruddock ( ) posted Tue, 19 February 2008 at 5:01 PM

The reason why this particular PZ2 only works properly when applied normally is going to be because of something (possibly trivial) that's in or not in the contents which might or might not be obvious from just looking at it.
Without being able to inspect the contents, I doubt anyone will figure out the problem.


lesbentley ( ) posted Tue, 19 February 2008 at 5:06 PM

I am no expert in readScript, I have rarely used it, so please forgive me if I talk a load of rubbish, but here are my thoughts.

Quote - I think it MIGHT be related to the fact... That the V4.2 isent targeted/Selected when the MYTOON.PZ2 pose is applied..... im not sure though...

It's true that the figure needs to be selected before a pose can be applied, but as your "v4.2++Muscle.CR2" is importing the "Victoria 4.2.cr2" into itself, the figure should already be selected. This seems to be proved by the fact that the other two pz2 files are working ok. As far as I know readScript has no special syntax other than what you are using in your cr2.

My first suspicion would be some typographic or syntax error, either in the readScript path for the "MYTOON.pz2", or within the "MYTOON.pz2" itself, or perhaps even one of the other pz2 files failing to load the required morph deltas. If it were me, the first thing I would do is some experiments.

Move "MYTOON.pz2" to some safe place. Make a pz2 file with only one dial setting, for example:

{

version
        {
        number 3
        }

actor head:1
        {
        channels
                {
                rotateY yrot
                        {
                        keys
                                {
                                k  0  45.0
                                }
                        }
                }
        }
}

Name this file "MYTOON.pz2", and place it where the original "MYTOON.pz2" used to be. If this does NOT work to turn the head 45 degrees, edit the "v4.2++Muscle.CR2" to place the "MYTOON.pz2" as the second readScript call. Or, if it does work edit the new "MYTOON.pz2" to act on one targetGeom channel, preferably one that is native to V4, that is to say does NOT need the deltas to be injected (if such exists in V4). If that works edit the new "MYTOON.pz2" to set the dial value for just one of the channels in your original "MYTOON.pz2". I know my suggestion is a lot of work, but it may help to pinpoint exactly where the problem is. If you decide to try this, please report back as to exactly what you have tried, and exactly which experiment failed.

Wishing you the best of luck,
Les.


icprncss2 ( ) posted Tue, 19 February 2008 at 5:09 PM · edited Tue, 19 February 2008 at 5:15 PM

Is the Julia:MYTOON a custom morph?  By that I mean you took the mesh into a modeller, created a new face and then used it as a morph target.  Or is it a face morph that was created from dial spins of the morphs ++ and/or muscle morphs?


lesbentley ( ) posted Tue, 19 February 2008 at 5:36 PM

Just an after thought. The readScript line reads: readScript ":Runtime:libraries:Pose:Julla:MYTOON.pz2"

I don't supose it should read:

readScript ":Runtime:libraries:Pose:Jullia:MYTOON.pz2"


LBJ2 ( ) posted Tue, 19 February 2008 at 7:32 PM

file_400310.jpg

> Quote - > Just an after thought. The readScript line reads: readScript ":Runtime:libraries:Pose:Julla:MYTOON.pz2" > > I don't supose it should read: > > readScript ":Runtime:libraries:Pose:Jullia:MYTOON.pz2"

Hiya Lesbently and everyone else :)

And thanks for the replies.

I tried the simple brilliant debugging method above sugessted by Lesbentley.
Why dident i think of that lol..keep it simple stupid... the KISS method.

Modifying mytoon.pz2 to only contain a 45 degree turn of the head.

It works :)

So i know now that its my mytoon.PZ2 file that contain something spooky.

mytoon.pz2 is made with a utility for D|S called "Daz poser format exporter"
i think its a scripting thing.

But mytoon.pz2 works perfect when i use it by selecting v4.2++Muscle character.
And then select "Import from the file menu" and click mytoon.pz2.

Or simply copying mytoon to the runtime/pose folder, and then double clicking its icon works fine too. But NOT when implementet in the above mentioned and modified version of v4.2.cr2.

But one thing is for certain. That "Daz poser format exporter" does something to the PZ2 file...
that readScript dosent understand.

But we know the readScript command works fine if adding a pz2 custom dialed pose, as argument.

How do i attack this.. the mytoon.pz2 is BIG... heh... 560 kb.

If i try to edit mytoon.pz2 in notepad, i looks like it contain binary data and script text mixed among each other..... starnge square boxes aso.... is that normal?

Try look at the attached picture..

If i only view it... it looks like normal scripting.

I attached a picture of that too

Best Regards
LBJ Denmark

 


LBJ2 ( ) posted Tue, 19 February 2008 at 7:34 PM · edited Tue, 19 February 2008 at 7:37 PM

file_400311.jpg

here comes the 2 different picture of mytoon.pz2 content

This is when i EDIT in notepad:

I never edited anything or saved this file since it looks to contain binary data.
It would be sick for sure if edited in notepad.


LBJ2 ( ) posted Tue, 19 February 2008 at 7:34 PM

file_400312.jpg

this is when i VIEW in notepad


nruddock ( ) posted Tue, 19 February 2008 at 9:13 PM

Quote - I never edited anything or saved this file since it looks to contain binary data.
It would be sick for sure if edited in notepad.

That's not really binary data, Notepad doesn't handle some linefeed/carriage return combinations properly, so use Wordpad or some other text editor.

Alternatively, you could just change the file extension to .DOC (or add that extension) and attach it to a post.


svdl ( ) posted Tue, 19 February 2008 at 10:29 PM

A vague memory tells me something about readscript and comment lines. Maybe those comment lines are the culprit?

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


lesbentley ( ) posted Wed, 20 February 2008 at 1:47 AM · edited Wed, 20 February 2008 at 1:49 AM

Quote - But mytoon.pz2 works perfect when i use it by selecting v4.2++Muscle character.
And then select "Import from the file menu" and click mytoon.pz2.

And it works fine when you apply it from the pallet. This sounds very strange to me, I would have thought that if it works from the pallet it should work from readScript. Are you absolutely sure the path in the radScript line is correct, I think it is probably case sensitive, by which I mean that "Julla" and "julla" are not the same, neither are "MYTOON.PZ2" and "MYTOON.pz2".

Perhaps svdl is right and the comment lines are the problem.

I'm grasping at straws here (slim chances). Do you have multiple Runtime folders, if the MYTOON.PZ2 is in a different Runtime that could be the cause.

You could try rebuilding the "MYTOON.PZ2" by a different method. First make sure the original "MYTOON.PZ2" is backed-up to a safe place.  Apply "MYTOON.PZ2" to your figure from the pallet, or by import. Save a pose for your figure using the "Include morph channels in pose set?" option. Save it to RuntimelibrariesPoseJullaMYTOON.PZ2.

Before you go to the trouble of stripping the translations and rotations out of this file, test it by applying the v4.2++Muscle.cr2, to make sure it sets the morphs.

If it does set the morphs, download and install the free utility "Morph Manager 4" (MM4). Load your new pz2 in MM4 click the "More Options" button, select "Delete all channels from file", this will delete all channels except the morph (targetGeom) channels. Save the file back to disk.

You can get MM4 from:
http://www.morphography.uk.vu/dlutility.html

Whilst you are there also get "CR2 Editor 1.51" by John Stallings it can be very useful for editing poser files. You might also like to get another free cr2 editor "CR2Builder" from:
http://www.geocities.co.jp/Bookend-Ohgai/9483/tool/CR2Builder/index.html

And you should have a good text editor, EditPad Lite is quite good, and it's free. You can get it from:
http://www.editpadpro.com/editpadlite.html


Lucifer_The_Dark ( ) posted Wed, 20 February 2008 at 2:05 AM

Quote - Well thanks lol :)

I kinda feel flattered. I dont have high thoughts about my english lingual skills since im very often being misunderstood in these forums haha.

I noticed your banner ...

Are you THE Anton Kisiel?
Father of Apollo?

Best Regards
LBJ Denmark

Sorry to disappoint you but I'm not Anton, I'm just a fan of his work. I must get round to posting some renders in teh gallery some time, been saying that for years actually but I really should get on with it ;)

Windows 7 64Bit
Poser Pro 2010 SR1


alizea ( ) posted Wed, 20 February 2008 at 2:14 AM

Have you tried to put the readscript  mytoon on the top like this :

readScript ":Runtime:libraries:Pose:Julla:MYTOON.pz2
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" 

It seems that Poser reads the file from the end to beginning so the morphs++ must be read before the dialed character

Alice's and GND4's Tailor !
Check my free clothing fits : www.alizea3d.com


nruddock ( ) posted Wed, 20 February 2008 at 3:26 AM

The simplist approach would be to remove a section of the file, then try to load, if it fails, the problem is in what's left, if it behaves, the problem is in what you removed (in which case you put back what you removed).
Keep repeating the process to narrow down the section in which the problem is.


Lucifer_The_Dark ( ) posted Wed, 20 February 2008 at 4:58 AM

Change the line "actor BODY" to "actor BODY:1" I have a sneaking feeling that that's the problem. The pose isn't pointing at any specific figure & poser can't decide whether you want it applied to V4 or to some other part of the scene so it's doing nothing with it.

Windows 7 64Bit
Poser Pro 2010 SR1


LBJ2 ( ) posted Wed, 20 February 2008 at 5:16 AM

Quote - But mytoon.pz2 works perfect when i use it by selecting v4.2++Muscle character.
And then select "Import from the file menu" and click mytoon.pz2.

And it works fine when you apply it from the pallet. This sounds very strange to me, I would have thought that if it works from the pallet it should work from readScript. Are you absolutely sure the path in the radScript line is correct, I think it is probably case sensitive, by which I mean that "Julla" and "julla" are not the same, neither are "MYTOON.PZ2" and "MYTOON.pz2".

Nope its not a case sensitivity problem.
When i ... suggested by you....replaced my original content in MYTOON.PZ2...with a simple 45 degree turn of the characters head.. it all worked perfect. Both my "v42++muscle.cr2" and "mytoon.pz2".
Both files did all the was told.

Quote - Perhaps svdl is right and the comment lines are the problem.

Yes SVDL is right ... there are SOMETHING in mytoon.pz2 .. that readScript refuse to understand. It might be the comment lines.

Quote - I'm grasping at straws here (slim chances). Do you have multiple Runtime folders, if the MYTOON.PZ2 is in a different Runtime that could be the cause.

Nope only 1 Runtime.
But i considered having more, since i have +500-1000 things installed, and i cant find my stuff anymore since the content list is 1 mile long :)

Quote -
You could try rebuilding the "MYTOON.PZ2" by a different method. First make sure the original "MYTOON.PZ2" is backed-up to a safe place.  Apply "MYTOON.PZ2" to your figure from the pallet, or by import. Save a pose for your figure using the "Include morph channels in pose set?" option. Save it to RuntimelibrariesPoseJullaMYTOON.PZ2.

Im a D|S 1.8.2.1 user :) so it might be called "Pose Preset" in D|S i think.
pose preset in D|S is a *.dsb file. *.dsb has binary content only.
But i can use my "Daz poser format exporter" utility to export it to a PZ2 file if thats what you mean?

I bought poser 6(for future rigging purposes) last week from this store, for 100 bucks including freight. http://store.purplus.net/poser6.html
But since the shop is in the US and im in northern europe, it will take 14 days to get it.
So it should arrive next week.

Quote -
Before you go to the trouble of stripping the translations and rotations out of this file, test it by applying the v4.2++Muscle.cr2, to make sure it sets the morphs.

v4.2++Muscle.cr2 is working perfect, it always did. It load v4.2, apply base v4, apply ++ morphs
and aply muscle morphs. That part works perfect. And i can double click it as a icon in the content/daz people folder.

Quote -
If it does set the morphs, download and install the free utility "Morph Manager 4" (MM4). Load your new pz2 in MM4 click the "More Options" button, select "Delete all channels from file", this will delete all channels except the morph (targetGeom) channels. Save the file back to disk.

You can get MM4 from:
http://www.morphography.uk.vu/dlutility.html

Whilst you are there also get "CR2 Editor 1.51" by John Stallings it can be very useful for editing poser files. You might also like to get another free cr2 editor "CR2Builder" from:
http://www.geocities.co.jp/Bookend-Ohgai/9483/tool/CR2Builder/index.html

And you should have a good text editor, EditPad Lite is quite good, and it's free. You can get it from:
http://www.editpadpro.com/editpadlite.html

Thanks for the recommendations. I will download these 4 utilities.
And try to strip the mytoon.pz2 as you describe.
I will post result as soon as it is tested.

Best Regards
LBJ Denmark


icprncss2 ( ) posted Wed, 20 February 2008 at 8:15 AM

For editing text files for Poser, I suggest either EditPad Lite or TextPad.  EditPad Lite is free, TextPad is shareware.  Both are much better than notepad or wordpad.


LBJ2 ( ) posted Wed, 20 February 2008 at 8:49 AM · edited Wed, 20 February 2008 at 8:51 AM

Hiya everyone :)

I got it all this far...

i downloaded the recommended utilities and tried loading the file into MM4
as Lesbentley suggested, and deleted all channels from option meny and saved it.

no difference.

deleted the comment lines from mytoon.pz2, like SVDL suggested.

no difference.

i even tried to put in a "pickActor Victoria 4.2" suggested by a guy at Daz forum..

no difference

i tried to simplify mytoon.pz2 too... by only making 1 change, resizing the nose.

no change......... same ole problem

BUT

I can apply mytoon.pz2 after the v4.2 CR2 file has executed. And all works fine.
but readScript comman refused to do it.

EXCEPT... if i replace the content of mytoon.pz2 with this code:

[code]

{
version
        {
        number 3
        }
actor head:1
        {
        channels
                {
                rotateY yrot
                        {
                        keys
                                {
                                k  0  45.0
                                }
                        }
                }
        }
}
[/code]


and thats the WAUW... v4.2 turns its head 45 degrees.
So then IT WORKS.............

But its not good.. since it wont accept my custom character.

One thing is for certain.. that Daz "poser format exporter" utility...
Does something naughty to mytoon.pz2, that readScript dont understand.


But what?

Best Regards
LBJ Denmark


Lucifer_The_Dark ( ) posted Wed, 20 February 2008 at 8:55 AM

I think that confirms it's the actor line(s) in your pose that's causing the problem, I have a feeling they REALLY really need to have the number on the end or it'll never work as you want it.

Windows 7 64Bit
Poser Pro 2010 SR1


LBJ2 ( ) posted Wed, 20 February 2008 at 9:06 AM

Quote - I think that confirms it's the actor line(s) in your pose that's causing the problem, I have a feeling they REALLY really need to have the number on the end or it'll never work as you want it.

Hiya (Not Anton Kisiel) haha

No im not disapointed about it.

Im not quite sure that i know what you mean by:

Actor line's?
Number on the end?

Best Regards
LBJ Denmark


alizea ( ) posted Wed, 20 February 2008 at 9:20 AM

And what if you put a zero angle instead of 45 ?

Alice's and GND4's Tailor !
Check my free clothing fits : www.alizea3d.com


Eshal ( ) posted Wed, 20 February 2008 at 9:20 AM

Hi there,

I am not sure if this helps but when make characters I make an INJ file that uses deltas as references, I put these in  a separate folder from so  I have all delta files together.In the INJ file I have the actor information first and then the readscript information last.  It always works for me.

[code]
actor leftEye
    {
    channels
        {
        targetGeom CorneaBulge
            {
            keys...
...
readScript ":Runtime:libraries:FolderName:InjDeltas.NameofFile.pz2"
    figure
    {
        defaultPick body
    }
    rreadScript ":Runtime:libraries:FolderName:Unhide.NameofFile.pz2"
}
[/code]

Regards
Eshal

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


LBJ2 ( ) posted Wed, 20 February 2008 at 9:25 AM

Quote - And what if you put a zero angle instead of 45 ?

Hiya and thanks for the reply.

With a zero angle it would be pointless to apply the PZ2.
Then the character would just look like what the CR2 file did alone.

Best Regards
LBJ Denmark


LBJ2 ( ) posted Wed, 20 February 2008 at 9:37 AM

Quote - Hi there,

I am not sure if this helps but when make characters I make an INJ file that uses deltas as references, I put these in  a separate folder from so  I have all delta files together.In the INJ file I have the actor information first and then the readscript information last.  It always works for me.

[code]
actor leftEye
    {
    channels
        {
        targetGeom CorneaBulge
            {
            keys...
...
readScript ":Runtime:libraries:FolderName:InjDeltas.NameofFile.pz2"
    figure
    {
        defaultPick body
    }
    rreadScript ":Runtime:libraries:FolderName:Unhide.NameofFile.pz2"
}
[/code]

Regards
Eshal

Hiya and thanks for the reply

Are you making your characters in a text editor?

Poser only?

The "DAZ INJection Pose Builder 1.5"?

Or some special poser tools?

I seriously consider buying the poser tools packadge from 3Ddimension here at renderosity..
Tool collection for Poser:
http://www.renderosity.com/mod/bcs/index.php?ViewProduct=37406

But since im a Daz Studio user, im not sure if it would be a waste of money..!?!

Best Regards
LBJ Denmark


Lucifer_The_Dark ( ) posted Wed, 20 February 2008 at 9:49 AM

What I meant was, the part of the pz2 file you posted looked like this:

{
    version
    {
        number 3
    }
actor BODY

right?

All the pose files I've looked at look like this:

{
    version
    {
        number 3
    }
actor BODY:1

the difference is just that :1 on the end of where it says actor, I'm almost certain that is what's causing the pz2 not to load, the bad news is there's an actor line for each body part that is effected by the pz2 so you'd have to go through the file & add :1 to the end of each line, the good news is it shouldn't take more than 5 minutes ;)

Windows 7 64Bit
Poser Pro 2010 SR1


Eshal ( ) posted Wed, 20 February 2008 at 10:01 AM · edited Wed, 20 February 2008 at 10:08 AM

It depends on how much time I have and how lazy I am feeling on whether I use  the Injection Pose builder or edit by hand in a text editor to make the injections once have the character set to how I want them.

I have DS but I hate the interface so I un-installed it, so I am not familiar with how it handles Poser files but it seems to me if the directory structures aren't that different then grabbing the tool package wouldn't be a bad idea. If you can maybe contact the vendor and ask if the package is suitable for use with DS.

Quote -
The difference is just that :1 on the end of where it says actor, I'm almost certain that is what's causing the pz2 not to load, the bad news is there's an actor line for each body part that is effected by the pz2 so you'd have to go through the file & add :1 to the end of each line, the good news is it shouldn't take more than 5 minutes ;)

It might make a difference but I don't have the numbers in my inj poses and I have seen other character injections that don't use it either.

Regards

Eshal

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


LBJ2 ( ) posted Wed, 20 February 2008 at 10:07 AM

Quote - What I meant was, the part of the pz2 file you posted looked like this:

{
    version
    {
        number 3
    }
actor BODY

right?

All the pose files I've looked at look like this:

{
    version
    {
        number 3
    }
actor BODY:1

the difference is just that :1 on the end of where it says actor, I'm almost certain that is what's causing the pz2 not to load, the bad news is there's an actor line for each body part that is effected by the pz2 so you'd have to go through the file & add :1 to the end of each line, the good news is it shouldn't take more than 5 minutes ;)

Hiya and thanks for the reply

Well that sound like a thing to try :)

So that im gonna do!

Its still strange that the PZ2 file works when i apply it manually....

Maybe the :1 at actor line will satisfy readScript :)

We will know soon haha

Best Regards
LBJ Denmark


Eshal ( ) posted Wed, 20 February 2008 at 10:20 AM

Just a thought, there aren't any missing or extra or more than one blank line at the end of the file ? I know I have had poses fail for those reasons.

Regards

Eshal

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


LBJ2 ( ) posted Wed, 20 February 2008 at 10:36 AM

Hiya everyone and thanks for participating in this matter

IT WORKS..........IT WORKS..........IT WORKS..........IT WORKS..........

**"Lucifer_The_Dark(A Renderosity user)" rules hahaha..

**MAN...

it was the **:1

**Adding a ":1" to each line in the PZ2 file that had the word ACTOR in it..
Made all the difference.

EditPadLite is GREAT.. i love it already.. so easy to work with.
Thanks for reccomending it btw.

but..

DAZ IS NAUGHTY.........

LOL

They made the Daz "Poser format exporter" utility.... of which i used to make my PZ2
So i would think.. that it should add the ":1" to each actorline.

So that the enduser wouldent have to do it manually...
Or am i wrong?

Best Regards
LBJ Denmark


Eshal ( ) posted Wed, 20 February 2008 at 10:44 AM

Great!. Athough now I want to know why my INJ files work without having the 1 after ACTOR. Maybe it's a DS thing.

Quote - EditPadLite is GREAT.. i love it already.. so easy to work with.
Thanks for reccomending it btw.

I use use EditPlus myself and love it to death.  These progams make life so much easier to code than good old notepad :)

Now you have this working you will have to do a render so we can all see what you were working so hard on :)

Regards
Eshal

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


LBJ2 ( ) posted Wed, 20 February 2008 at 10:54 AM · edited Wed, 20 February 2008 at 10:56 AM

Quote - Great!. Athough now I want to know why my INJ files work without having the 1 after ACTOR. Maybe it's a DS thing.

Quote - EditPadLite is GREAT.. i love it already.. so easy to work with.
Thanks for reccomending it btw.

I use use EditPlus myself and love it to death.  These progams make life so much easier to code than good old notepad :)
Now you have this working you will have to do a render so we can all see what you were working so hard on :)
Regards
Eshal

Yes it IS a Daz thing.

Are you a Poser or D|S user?  "Poser format exporter" is a utility for D|S
Maybe thats the difference about your INJ working without ":1" ?

That Daz "Poser format export" utility for D|S should add it i think. But it dont

Well yes i could post a few renders in my gallery of mytoon.pz2 :)

But i have to make a few modifications first since she looks 100% like a living woman i once knew better than good :)

But if i dress her decent, pose her decent,  and modify her face and body a little bit.. i guess it wont do any harm.

Best Regards
LBJ Denmark


Lucifer_The_Dark ( ) posted Wed, 20 February 2008 at 11:48 AM

It was pure guess work LBJ, I don't use D|S at all but every Poser pose I looked into had the numbers so I put 2 & 2 together & you got a working pose :D :D

Windows 7 64Bit
Poser Pro 2010 SR1


LBJ2 ( ) posted Wed, 20 February 2008 at 12:07 PM

Quote - It was pure guess work LBJ, I don't use D|S at all but every Poser pose I looked into had the numbers so I put 2 & 2 together & you got a working pose :D :D

Well thanks a lot :)

I would never have guess that. But it sound very logical haha...

Best Regards
LBJ Denmark


lesbentley ( ) posted Wed, 20 February 2008 at 12:27 PM

@ LBJ2,

So the pz2 to rotate the head works ok, even when applied via readScript, but a dial setting pose does not work via readScript, even when you are only setting one dial. I have got that right, yes? Forgive me for pressing this point, but it is very important to know that you have tried a pz2 that only sets one morph dial.

If I have my facts right above, THIS IS VERY STRANGE! The syntax to set a morph dial is exactly the same as the syntax to set a rotation dial. The only difference is the channel type "targetGeom" or "rotate?", and the actual name of the channel (eg "yrot" or "PBMCC01"). If the the "Poser Format Exporter" is introducing an error into the dial setting pose for the morph, then why is it not introducing the same error into the dial setting pose for the rotation??? The syntax is the same, so why not the same error?

I don't have DAZ Studio. Can it read native Poser formats like pz2, or do you need to use "Poser format exporter" to convert them first? Or is "Poser format exporter" only needed for files written by DS?

Will you please upload the pz2 file to set one morph dial, there may be some clue within it. Just rename it by adding a ".TXT" file extension to the end, eg "MYTOON.pz2.TXT" and attach it to your next post.


lesbentley ( ) posted Wed, 20 February 2008 at 12:33 PM

@ Lucifer_The_Dark,

Quote - I think that confirms it's the actor line(s) in your pose that's causing the problem, I have a feeling they REALLY really need to have the number on the end or it'll never work as you want it.

In my experience the colon and actor number (e.g. ":1") is not important in an actor line in a pz2, it can be the wrong number, or absent, Poser still handles the file ok. There can be places in some pz2's where the actor number is important,  but as MYTOON.pz2 is just a dial setting pose it should not matter. Of course I am talking Poser here, DS may be diffrent.


LBJ2 ( ) posted Wed, 20 February 2008 at 12:44 PM

Hiya everyone and thanks for participating in this matter

Im posting this once more..

IT WORKS..........IT WORKS..........IT WORKS..........IT WORKS..........

**"Lucifer_The_Dark(A Renderosity user)" rules hahaha..

**MAN...

it was the **:1

**Adding a ":1" to each line in the PZ2 file that had the word ACTOR in it..
Made all the difference.

EditPadLite is GREAT.. i love it already.. so easy to work with.
Thanks for reccomending it btw.

but..

DAZ IS NAUGHTY.........

LOL

They made the Daz "Poser format exporter" utility.... of which i used to make my PZ2
So i would think.. that it should add the ":1" to each actorline.

So that the enduser wouldent have to do it manually...
Or am i wrong?

Best Regards
LBJ Denmark


lesbentley ( ) posted Wed, 20 February 2008 at 12:57 PM

Big WHOOPS!  

Somehow I missed seeing that this thread had two pages.  I was still replying to the first page. Which is why my last two posts look so out of context.

Good work Lucifer_The_Dark!

Glad to see you got it working LBJ2!


Lucifer_The_Dark ( ) posted Wed, 20 February 2008 at 1:03 PM

No worries les I know exactly what those senior moments are like, I have too many of them myself ;)

Windows 7 64Bit
Poser Pro 2010 SR1


LBJ2 ( ) posted Wed, 20 February 2008 at 2:04 PM · edited Wed, 20 February 2008 at 2:04 PM

Quote - No worries les I know exactly what those senior moments are like, I have too many of them myself ;)

25 years ago my memory was all good :)

Now its Altzheimer light lol.

Mytoon.pz2 on the way up in my Renderosity gallery... almost ready.

Best Regards
LBJ Denmark


LBJ2 ( ) posted Wed, 20 February 2008 at 2:27 PM

Hiya everyone

The result of Mytoon.pz2 is posted in my gallery here at Renderosity if anyone would like to see her.

http://www.renderosity.com/homepage.php?page=3&userid=LBJ2

Thanks to every each one participating and helpin on this matter.

Best Regards
LBJ Denmark


  • 1
  • 2

Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.