Mon, Dec 23, 5:27 PM CST

Renderosity Forums / Poser Technical



Welcome to the Poser Technical Forum

Forum Moderators: Staff

Poser Technical F.A.Q (Last Updated: 2024 Dec 04 2:47 am)

Welcome to the Poser Technical Forum.

Where computer nerds can Pull out their slide rules and not get laughed at. Pocket protectors are not required. ;-)

This is the place you come to ask questions and share new ideas about using the internal file structure of Poser to push the program past it's normal limits.

New users are encouraged to read the FAQ sections here and on the Poser forum before asking questions.



Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: ReadScript Tutorial by Rob Whisenant


keihan ( ) posted Wed, 15 January 2003 at 8:26 AM ยท edited Mon, 23 December 2024 at 12:27 PM

For all who wish to know a little bit about how "readscript" works (as seen in V3), here is a link to Rob's (from DAZ) tutorial. http://www.rbtwhiz.com/rbtwhiz_rScript.html I'm not sure if anyone has posted this link yet or not, if so...here it is again. Anyhow, "readscript" allows you to make calls to external documents and executes them on the fly (in the order that they are read of course). In application, one pose file could contain the ability to inject morph deltas, apply materials, set poses, load props, etc. This is a great way to simplify things for both yourself and, as a merchant, for your clientel. :) ----Will


hogwarden ( ) posted Thu, 16 January 2003 at 9:49 AM

Hmmm... Just read it and I like his final sentance... "My suggestion would be to relax, it is extremely simple... don't overanalyze it ;)" LOL! I have a question... can the readScript lines appear anywhere in the poser file? They seem to be put at the top just after the version section, but Rob does mention putting the line at the end of the file (To prove it vanishes when you save the file back to the library). Can they go anywhere?!? H:)


keihan ( ) posted Thu, 23 January 2003 at 9:09 AM

I am thinking that they can, but the organisation is important since they execute in the order they are read. For example, if you want to remove deltas then hide the dial in respect to the morph you just removed you'd have to have the "readscript" line that removes the deltas come first in order. I also discovered that readscript will read any file extension! You can rename the pz2 to anything you wish and readscript will still read the data inside as long it's still in the proper poser format ;). Cool. ----Will


keihan ( ) posted Thu, 23 January 2003 at 9:45 AM

Another interesting discovery I made was while I was working on a kit (not yet released) for Victoria 2. The kit is designed as a way for users to remove unused deltas from a loaded V2 figure to free up memory. There are also options to hide and show dials. However, when the user removes a particular morph I have it set so the dial hides automatically. I discovered that when this is done and the user saves to a new Cr2 the dial is forced to remain hidden even in the new Cr2! It does not return "unhidden" as would normally be expected. I'm not sure, yet, as to why this occurs but it does. I even tried saving the cr2 again and again under different names and the dials still remained hidden. From what I know and from my experience I don't think this has ever been accomplished. Typically you can hide the dials from a pose file, but if the user saves to a new cr2, the dials are forced to become unhidden by default. I've toyed around with hiding dials before and never was able to get them to remain hidden. Now that I've accomplished it while removing deltas at the same time, I'm wondering what is forcing Poser to keep them hidden. In retrospect, the "Hide Dials" option in my kit remains the same as before. If the figured is saved to a new cr2, the dials become unhidden when the cr2 is reloaded. Go figure. It only seems that if you remove the deltas and then hide the dial that this applies, but perhaps I'll take a closer look at my code when I get a chance and see if there is something different there that is causing this much wanted effect hehehe. Just thought I'd relay this tidbit of info from my journeys through readscript :) Ps: How I remove the deltas is through morph injection. I simply inject a value of zero to the deltas of a target. indexes=0 deltas=0 That's pretty much it. Pretty simple but a lot of work and a lot of files to keep track of. So far, I have about 1600 files in the kit and these just pertain to V2's head. I'm configuring a good way to structure the body targets at the moment. ---Will


Mahna ( ) posted Tue, 11 February 2003 at 9:15 PM

I have a question about the legalities of creating injection poses. In the Read Me's of the Daz Head, Body and Character Morph Packs, it clearly states that the injection poses may not be redistributed in part or in whole.

I know how to create either an injection pose, which loads the morphs directly, and a pz2, (that loads the morphs after person has injected their morph paks.)

However, there seems to be a gray area here on copyrights, concerning the actual "Daz Delta Injection Poses."
Perhaps some rules have been changed concerning this issue since the SR1.1 has been issued. And if so, can someone show me this please.

I don't want to create a character, and go to the trouble of creating an Injection pose, only to be told later that I must redo it because it is copyright infringement to redistribute Daz injection poses.

There is another question that I need to experiment about.
The reason that it would be illegal to distribute these injection poses could only be that if a person hasn't purchased the actual Morph Pose Packs, will these injections still work? In other words, Daz would lose sales from people that don't buy the Daz Morph Packs, but instead, buy characters created by other's, containing injection poses just for that chacaracter. I personally love the character injected morph paks, not having to load all the morphs, and have purchased some, and am currently creating a character, and want to do it that way myself. But Not go to Jail! LOL

To answer my own question, I suppose I would need to uninstall all my injection poses, load V3 and click on a V3 character's injection pose, and see if it works????

I would appreciate any input that anyone has about the legalities of this.

Jail is not something I want to experience just yet! LOL...

I am quite green, a rookie in the Merchant department, and so afraid of doing anything wrong:-O

In Much V3 Distress!
Thanks:)
Mahna


keihan ( ) posted Wed, 12 February 2003 at 4:01 PM

Mahna, If you are just creating a pose file without the deltas, then there is no issue over copyright. :) The violation would occur only if you include the deltas as an INJECTION as well. Pose files should only include info that sets up the parameters of your characters. In other words, the pose file would contain only the values for the pose (dials); there shouldn't be any info in the pz2 file which says "indexes" or "deltas". Example: channels { targetGeom HdVictoria2 { name Elena initValue 0 hidden 0 forceLimits 1 min 1 max 1 trackingScale 0.02 keys { static 0 k 0 1 } interpStyleLocked 0 indexes 9772 numbDeltas 10041 deltas After "deltas", there would be a list of data which defines the morph. I took this example from a custom made morph injection that I created for Victoria 2, hence you'll notice the name change of the dial from "HdVictoria2" to "Elena" The only info that you should see in a morph pose file is this: channels { targetGeom HdVictoria2 { name Elena initValue 0 hidden 0 forceLimits 1 min 1 max 1 trackingScale 0.02 keys { static 0 k 0 1 } Of course this example only shows one channel :) Hope this helps. ----Will


Mahna ( ) posted Wed, 12 February 2003 at 4:16 PM

Thank you Will, yes, it helps very much! I think for now sticking with straight pz2's is the safest way to go for me...:) Mahna


keihan ( ) posted Fri, 14 February 2003 at 12:33 PM

Ooops... The last example I made didn't have the dial values which would be seen in a normal MatMor pose file. These values would come after "k 0 1" in the file. MatMor and Morph Injections aren't the same, of course since the indexes and deltas are included in an injection pose :). Glad that this was of help to you :D ----Will


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.