Forum: Poser Technical


Subject: Loading several conforming figures with readScript

nerd opened this issue on Jun 14, 2003 ยท 9 posts


nerd posted Sat, 14 June 2003 at 3:29 PM Forum Moderator

OK I want to load sevearal conforming figures with the readScript command in a cr2. I would like them all parented to the first item. The problem is they parent to the item listed before them. Is there a way to switch the "focus" back to the first item before the next item loads.

The CR2...
{
version
{
number 4
}
//Load V2
readScript ":Runtime:libraries:character:DAZ People:Victoria 2.cr2"
//First conformer works fine
readScript ":Runtime:libraries:character:Nerd3D Taanis:Taanis.cr2"
//Need to focus figue 1 here
readScript ":Runtime:libraries:character:Nerd3D Taanis:Taanis Arm.cr2"
//And again here
readScript ":Runtime:libraries:character:Nerd3D Taanis:Taanis Boots.cr2"
//Again
readScript ":Runtime:libraries:character:Nerd3D Taanis:Taanis Shldr.cr2"
}
ngsmall02.gif


Migal posted Sat, 14 June 2003 at 6:42 PM

Charles, I haven't tried it across multiple figures, but it should work. We can control focus with pickActor. It has to be in the doc section and it must be referencing a previously declared item. (It will even work on a prop if the prop is referenced as an actor, which is also the secret to MAT poses for non-parented props) The doc section has to be last. It works just like useCamera at the end of a cm2 file. It will change the focus of the selection menu under the doc window. doc } pickActor hip:1 {


Migal posted Sat, 14 June 2003 at 6:56 PM

Woops! I inversed the curly braces. It should read: doc { pickActor hip:1 } I think I'd try this after each readscript.


nerd posted Wed, 18 June 2003 at 5:39 PM Forum Moderator

This is weird! sometimes the figures conform... Sometimes they don't. I'm not sure if the pick actor thing worked of not. More expiriments are necessary with loading figures using a readScript command. ngsmall02.gif


Migal posted Wed, 18 June 2003 at 6:23 PM

I haven't had a lot of chances to experiment with it yet, Charles. I've been in the middle of a big project and when I got it to work for what I wanted, I stopped messing with it. I'm currently using it extensively after injection calls and in PAP poses. But, I didn't try anything like pickActor conformingTarget. I know it must be in the doc section, and the doc section needs to be last. Have you tried loading all the clothes, then using a series of pickActor commands in a single doc section to jump back and forth between selecting each conforming item and the conforming target? I'd think that would work.


nerd posted Wed, 18 June 2003 at 7:21 PM Forum Moderator

Nawp, it's not getting it. But I've discovered something REALLY interesting sbout loading a figure with a readScript. It does not change the Figure # or the bodyPart:# lines. In the beginning this just made things explode. Now I'm seeing all sorts of interesting possibilities opening up. The thing I'm interested in is bringing SuperConforming back to Poser 5. I believe I've found the magic combo, but it will require some more tests. Poser Clothes Makers Stay Tuned...


Migal posted Wed, 18 June 2003 at 8:34 PM

Ahhh... Okay. Now I see where you're going. What we really need is control over xtalk, be it in P5 or P4. That thing about readsript ignoring the #... This is why V3 has to be the only figure in a scene in order for her to be injected. This is the particular problem I need to solve. But, I'm anxious to see where you go with the resurrection of superconforming.


nerd posted Thu, 19 June 2003 at 12:19 AM Forum Moderator

What I've got so far is a way to load the figure and the conformers all at the same time. Then and only then will they cross talk. (At least that is what I have now) Most of the magic takes place in the "Real" cr2, not the loading script. The really cool thing is this allows complex, composite characters to be loaded and conformed in a single click.


Rebekah posted Fri, 11 July 2003 at 12:48 AM

We already have a few products out using this method and they have passed testing here at the MP. If anyone is interested in what method I have used let me know and I will put up an example. It was just something that I thought of after reading about the readScript command. I call it an EasyClothes.cr2 Rebekah Garner Sixus1 Media PS....what I was looking for here in the PoserTechnical Forum was if anyone had a way to export Poser animations to MDL format????