AtelierAriel opened this issue on Jul 03, 2005 ยท 10 posts
AtelierAriel posted Sun, 03 July 2005 at 8:34 PM
OK, posted this all over...hopefully someone who can help will see it. I have a PZ2 for Jessi and have everything working but the eyes. Need to set a morph value to 1.0 and scale and trans also in a way that posing won't change them. I know this involves using min=max but just don't have a clue when it comes to this. Did it once before but it just didn't stick. Also there's a "Bend" that's ticked off in Properties and the eyes can't be changed unless this is checked. Need to know if it 's possible to turn it off via a PZ2. If not, then the PZ2 is useless for changing the eyes. Don't remember having this for the Mil People or others. Anyway, if anyone wants to help please let me know. I'll gladly give the product for help. It's finished except for this one, tiny crucial thing. Won't work without it. And...she's an adorable pinup which should make it more interesting. Susan
insomniaworks posted Mon, 04 July 2005 at 10:54 AM
Hi susan,
Here is what I do with PZ2 files. I get things set up like I want them in poser like your eye scales and such, then save the pose file.
Its just a matter of opening up the pose file with word pad and removing all the stuff you don't want in it. This takes a little study of the code, but its really a simple code and you can quickly learn how to read thru the information and know what parts you want, and what parts you don't want.
For instance, you are only interested in making a PZ2 that only effects the eyes,.....isolate the eye code and remove all other code. You can work thru trial and error until you get it right.
As for your Bend off.,,,,that can be done with loading the character.cr2 via a special readScript that inserts new code turning the Bend off.
I hope this is some help. I don't have time to help you to much this afernoon, but I can give you more information later
marty
Message edited on: 07/04/2005 10:57
AtelierAriel posted Mon, 04 July 2005 at 10:25 PM
Marty, Have everything working and don't know what more I can do. Problem with eyes and setting a trans dial to anything other than what it's intended to be is that when a pose is applied, the setting that I have goes back to normal. I have z tran set to a minus .02 to compensate for a much larger eye. Then when a pose is used the eye goes back to it's intended setting and pops out. So I set a lock command and that's taking care of that problem. I would much rather have had another solution so that the person using the character doesn't have to go to the trouble of unlocking to pose the eyes. But this is what I'm capable of right now and it takes care of the problem.
AtelierAriel posted Tue, 05 July 2005 at 11:22 AM
Now trying to do this without a lock command and getting the finger from Poser. I spent all yesterday looking at braces and today looks like the same. Just for this one thing. Sigh... The following is the code for the eyes which is the part that's giving me grief. How do you know how many braces you need? Or how few? How many between body parts. I have CR2Edit but can't figure it out. I know...she can't figure that program out? What's she think she's doing here anyway? Code: Comes at the very end after all the other body parts which work. Just the eyes aren't working. So something is off. actor leftEye:1 { bend 0 channels { targetGeom Dilate { keys { static 0 k 0 1 } } translateZ ztran { forceLimits 4 min -0.002 max -0.002 } } scale scale { keys { static 0 k 0 1.3 } } } } actor rightEye:1 { bend 0 channels { targetGeom Dilate { keys { static 0 k 0 1 } } translateZ ztran { forceLimits 4 min -0.002 max -0.002 } } scale scale { keys { static 0 k 0 1.3 } } } } figure { } }
lesbentley posted Tue, 05 July 2005 at 1:48 PM
Here is an example of the sort of pose file you need:
{<br></br>version<br></br> {<br></br> number 3.0<br></br> }<br></br>actor leftEye:1<br></br> {<br></br> bend 0<br></br> channels<br></br> {<br></br> scale scale<br></br> {<br></br> forceLimits 4<br></br> min 1.3<br></br> max 1.3<br></br> keys<br></br> {<br></br> k 0 1.3<br></br> }<br></br> }<br></br> translateZ ztran<br></br> {<br></br> forceLimits 4<br></br> min -0.002<br></br> max -0.002<br></br> keys<br></br> {<br></br> k 0 -0.002<br></br> }<br></br> }<br></br> }<br></br> }<br></br>actor rightEye:1<br></br> {<br></br> bend 0<br></br> channels<br></br> {<br></br> scale scale<br></br> {<br></br> forceLimits 4<br></br> min 1.3<br></br> max 1.3<br></br> keys<br></br> {<br></br> k 0 1.3<br></br> }<br></br> }<br></br> translateZ ztran<br></br> {<br></br> forceLimits 4<br></br> min -0.002<br></br> max -0.002<br></br> keys<br></br> {<br></br> k 0 -0.002<br></br> }<br></br> }<br></br> }<br></br> }<br></br>figure<br></br> {<br></br> }<br></br>}
The 'bend 0' lines turn off bending for the eyes. The 'forceLimits 4' line in conjunction with 'min' and 'max' lines lock the translateZ and scale channels at the value specified by min and max. The Poser interface does not save scale data to a pose file, but a SHIFT+CTRL+F (Restor Figure) will reset the scale, so for the scale channels you have the option of either forcing limits, or setting the 'initValue', e.g
scale scale
{
initValue 1.3
keys
{
k 0 1.3
}
}
I have also attached a copy of the above file, so that you copy copy and paste it.
Message edited on: 07/05/2005 13:56
insomniaworks posted Tue, 05 July 2005 at 2:02 PM
sorry for taking so long to get back here, are you still needing to load the figure with the Eyes Bend off?
lesbentley posted Tue, 05 July 2005 at 2:34 PM
AtelierAriel posted Tue, 05 July 2005 at 2:55 PM
You guys are great...I have to go out for an hour will be back and then will try this. I've gotten everything working except the right eye. So I must have a brace off somewhere. I keep adding and deleting braces and by brain is now fried. When I come back I'll be more able to consentrate.
insomniaworks posted Tue, 05 July 2005 at 4:11 PM
I have been trying to help, I did find one extra bracket, but I couldn't get the eye rescaling with a pose to work. I started over from scratch by saving a pose and isolating the eye code and copying it to a new pose file, but in all my attempts, the pose will not work for scaling up eyes. I will pay attention to the pros, maybe I can lean something. marty
AtelierAriel posted Tue, 05 July 2005 at 6:38 PM
I thought I posted before but doesn't look like it made it. It works! Whew! Works, yippee. It's just that I've obsessed for two days over this and it was the last thing to do before the product is finished. I want to jump up and down on those stupid little brackets! I don't know what it was. Know that had changed the closing tags for some reason and Poser kept giving me the finger. Then didn't have the key tag in the z trans and didn't have the "min and max" in the scale tags. As soon as I fixed those things, everything worked. Still don't understand why, if you have the "min and max" statement you still need the "key" statement. And a funny thing...After studying the picture I begin to see the pattern of the braces. I've always left aligned everything because I just couldn't deal with the structure. But when you realize how the connections are made you see the sense of the structure. Finally, a tiny light comes on.