insomniaworks opened this issue on Oct 09, 2003 ยท 15 posts
insomniaworks posted Thu, 09 October 2003 at 5:27 PM
I am sad to say that for the time being Dark Whisper's Injection Magic is not available. All the rights to his products has been purchased by Daz3D. I need to do some morph injection in exhisting products. I need to know how to make a new cr2 that readScripts in the original cr2, so I can inject into it with a MOR pose.
lesbentley posted Thu, 09 October 2003 at 7:11 PM
The syntax to load a cr2 from another cr2 via readScript is: { version { number } readScript ":Runtime:libraries:character:FolderName:NameOfCr2.cr2" } I don't know much about readScript, so forgive me if I fail to see the point in doing this. Why not just load the cr2 directly from its pallet entry, then apply your MOR or Delta Injection pose to that? You don't need to load the cr2 via a readScript in order to use a pose file on it.
insomniaworks posted Thu, 09 October 2003 at 9:38 PM
Thank you Lesbentley I found the link http://rbtwhiz.com/rbtwhiz_rScript.html and I leaned that much so far. What I am trying to do is make morph injection packages for exhisting clothing packages, etc. Cr2's have to have empty morph channels to accept the morph injection. Merchants do not normally install these empty morph channels. I am not aloud to redistrubute a modified cr2 with out artists permission. I have learned this much though that there is a method by use of readScript that you can add empty morph channels to an exhisting cr2 with out having to include the contence of the original cr2. I would welcome any advice on this subject. thank you
insomniaworks posted Sun, 12 October 2003 at 5:55 PM
I have solved the problem with the help of sixus1, so I thought I would share it with all of you who are curious. He shown me how to use a readScript to REMOTELY add morphs or make a cr2 morph injection ready. Here is a snip from a cr2 that adds an empty morph channel into another cr2. { version { number 4.01 } readScript ":Runtime:Libraries:character:StudioMaya:MD01Basic.cr2" actor hip:1 { channels { targetGeom Slot1 { name Slot1 initValue 0 hidden 0 forceLimits 4 min -100000 max 100000 trackingScale 0.02 keys { static 0 k 0 0 } interpStyleLocked 0 indexes 0 numbDeltas 2021 deltas { } } } I could as well have added deltas instead of leaving it empty, but this gives me a way to install empty morph channels in exhisting items to make them ready for my injection packages. It is working great for me and I am betatesting a FreeStuff item right now which is a prototype of upcomming items by me. Look for the free stuff item IN-MayaDoll-G to be released in the next day or so for and look it over for a full explanation of how the problem was solved. Thank you all for all your help Marty
lesbentley posted Sun, 12 October 2003 at 6:43 PM
Well I'll be blowed... I never realised it was posible to add channels like this. This is wonderful news! Thanks so much for sharing this info.
insomniaworks posted Sun, 12 October 2003 at 10:33 PM
If you would like to examine the prototype item based on this forum thread, go to the testing thread at http://www.renderosity.com/messages.ez?ForumID=12356&Form.ShowMessage=1478625 Thank you everyone marty
Jaager posted Mon, 13 October 2003 at 4:54 PM
The figure opens from a readScript that calls it. The new slots are in the figure. When I saved the figure back, the slots did not save for me. - Check again, they do show up, they are at the very bottom of the channel listing.
layingback posted Tue, 14 October 2003 at 11:32 AM
Yep, that's the one downer with this solution (for Poser 4/PP users). The CR2 has to load the original character into Poser first then the new additional slots - otherwise you break the basic rule of providing Poser with access to the object before you modifiy/enhance/refer to it. And when you load the original, you obviously load all dials up to and including Rotate & Bend. But for what Insomniaworks was striving for - a way for newer Poser users to add morphs without requiring the user to get into Objaction Mover, Morph Master, etc. - it works quite well. And for Poser 5 users it works perfectly, as the Transform dials are always displayed separately at the bottom. For those Poser 4/PP users who want the morphs in a more logical place, I guess it's just a case of using Morph Manager - or your favorite editor - to move over the new slots permanently and replace the CR2. In other words more advanced users have lost nothing (beyond perhaps instructions on how to move the empty slot). One minor note, if you routinely store your original figures in folders of your own names (vs. the author's original name), you'll be looking at changing the path name in the readscript (in the CR2) before using it - although a readscript error is not fatal to Poser if you forget, as a invalid material file would be. Overall a big step forward.
Jaager posted Wed, 15 October 2003 at 1:58 PM
It is an additional tool to use, but it has a drawback The path in the readScript has to be precise. Those with the confidence to text edit a path to match their setup, are likely to also be able to use MM4 to just copy in new null morph channel hosts and use a normal injection pose. This going to catch those who rearrange their libraries but do not do text editing. It is a way of having a maintance-free method for some users, but it not going to be a universal solution. The second is having to save the file back to the library. If you have hidden morph channels, they show up. But this is true for any inject method using Poser. So this does not present anything in the way of a new problem there.
ToolmakerSteve posted Sat, 28 February 2004 at 12:26 AM
"I am not aloud to redistrubute a modified cr2 with out artists permission." Not quite true: simply use Objaction Mover to "encode" your modified cr2 with a "seed" of the original cr2. It is safe to distribute such an "encoded" file, because it is gibberish without the original, so the artist's copyright is protected.
insomniaworks posted Fri, 18 March 2005 at 2:19 PM
I am reviewing forum questions I have asked and answering them. This and much more can be done with readScripts. Many people are afraid of using them, thus not alot was known when I asked this question. With readScripts, I can insert any code into another cr2. marty
nruddock posted Sun, 22 January 2006 at 6:53 PM
There is a minor problem with technique when trying to load items with this setup into P6.
For whatever reason P6 needs the files load by "readScript" lines to have the extension PZ2, otherwise it will crash.
lesbentley posted Thu, 26 January 2006 at 3:05 PM
Thanks for info nruddock. If you can only load pz2 then insomniaworks' example in post# 4 no longer works, and if you can't load lt2, pp2, cm2, pp2, fc2, hr2, or cr2, then 7/8ths of the utility of readScript is lost. To me this is more than "minor problem", and more than a major bug. I sounds like a major disaster!
nruddock posted Thu, 26 January 2006 at 4:16 PM
I must admit I haven't tried any other combinations, this was the fix to a problem with insomiaworks' G4 for V3 (PoserPros).
I suspect that EF view the new behaviour as correct, and the old behaviour was unintended but fortuitous (and useful) like other discovered uses (or abuses) of various things in Poser files.
lesbentley posted Sun, 13 April 2008 at 10:53 AM
!!! HAPPY NEWS !!!
Quote - There is a minor problem with technique when trying to load items with this setup into P6.
For whatever reason P6 needs the files load by "readScript" lines to have the extension PZ2, otherwise it will crash.
Happy, if slightly late news. The above is NOT correct. P6 does NOT need files loaded via readScript to have a PZ2 file extension. I just loaded a CR2 in P6 via readScript, and no crash happened. The readScript line was in a cr2, basicly a slight variation on insomniaworks' example in post #4.