Wed, Nov 20, 12:35 AM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 18 10:25 pm)



Subject: automated add jcm's?


odeathoflife ( ) posted Sat, 21 June 2008 at 12:17 PM · edited Sun, 03 November 2024 at 10:36 PM

I cannot seem to wrap my head around JCM's is there an autokmated process where I can say use this when this bends?

Ty2 has some stockings that I made and she has a bend in the leg morph, that I have added to the stockings, but do nto want to have to apply it manually all the time.

Thanks

Pay for is cool too so no worries about that

♠Ω Poser eZine Ω♠
♠Ω Poser Free Stuff Ω♠
♠Ω My Homepage Ω♠

www.3rddimensiongraphics.net


 


PhilC ( ) posted Sat, 21 June 2008 at 1:49 PM

There are a number around. As coincidence would have it I wrote an in Poser Python version this morning. If you would like to beta test please email me at pcooke@philc.net


lesbentley ( ) posted Sun, 22 June 2008 at 9:58 AM

I'm sure PhilC's Python script will do the job, but for those who are interested in how to do it in a text editor, I include the following.

The basic idea of a JCM is that you use ERC to slave a targetGeom (morph) channel to a joint rotation channel. Note that in this post I am talking about directly editing the cr2, not injecting slaving code via a pz2.

In a none-conforming figure you could use the following code (in red) to slave the "MyMorph" channel in the rShoulder to the 'yrot' channel in the lForeArm.

                targetGeom MyMorph
                        {
                        name Morph
                        initValue 0
                        hidden 0
                        forceLimits 1
                        min 0
                        max 1
                        trackingScale 0.02
                        keys
                                {
                                static  0
                                k  0  0
                                }
                        interpStyleLocked 0
                        

Note that the numbers in your figure "Figure 2" and "rForeArm:2" may be different. In a conformer, the morph channel needs to slave to 'yrot' in the character, NOT to 'yrot' in the conformer. We can accomplish that by leaving the actor number out of the slaving code, so the code we would use would be:

                        valueOpDeltaAdd
                                Figure
                                rForeArm
                                yrot
                        deltaAddDelta 0.011

**When the actor numbers are left out of the slaving code, the channel will slave to a channel in the figure that was selected (the active figure) when the conformer was loaded.**The 'deltaAddDelta' line is a control ratio, it determines the strength of the effect that the master channel will have on the slave channel. You may need to play with this value to get it right. A 'deltaAddDelta' of 0.01 would make the morph fully expressed when the dial value of 'yrot' reaches "100º". In the above example a value of "0.011" is used, this value will make the morph fully expressed when the dial value of 'yrot' reaches "90º", and a 'deltaAddDelta' value of "0.0055" will make the morph fully expressed when the dial value of 'yrot' reaches "180º". I'm sure a more mathematically inclined person than me could explain this point better. Note that when slaving a morph to a rotation, you may sometimes need to use a negative value in the 'deltaAddDelta' line, this will depend on which actor and which rotation is involved.

If a morph in the character is already slaved to a joint rotation, as an alternative to slaving the morph in the conformer to a rotation in the the character, you can slave the morph in the conformer to the morph in the character. In this case you will probably be able to leave the 'deltaAddDelta' at "1.0":

                        valueOpDeltaAdd
                                Figure
                                rShldr
                                MyMorph
                        deltaAddDelta 1.0

Also remember that you can use 'forceLimits 1' in conjunction with 'min' and 'max', to limit the minimum and maximum value that the morph can reach.


odeathoflife ( ) posted Sun, 22 June 2008 at 10:49 AM

I am not sure that what I was doing before Phils script, I did try to add the red in ( found via a google search from a couple different places) but it would never follow the xRot that I was trying...I even tried to copy it straight from the donar CR2 with no luck as well...

I guess that is my problem right there...as soon as I can't get it to work after a few tries I find some one who has done the hard work to make it a one button press experience...gotta love those people.  :)

♠Ω Poser eZine Ω♠
♠Ω Poser Free Stuff Ω♠
♠Ω My Homepage Ω♠

www.3rddimensiongraphics.net


 


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.