Fri, Nov 22, 1:08 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 21 6:06 am)



Subject: ERC code for two bodyparts moving in opposite direction


Cybertenko ( ) posted Fri, 22 October 2010 at 6:17 AM · edited Tue, 19 November 2024 at 11:17 AM

Hallo, I need a little help to code ERC for two body parts moving in oposite direction like airplane carriage wheel legs - one is rotating +90 degrees up and down and the other -90 degree up and down. Thank you! 


ockham ( ) posted Fri, 22 October 2010 at 7:01 AM · edited Fri, 22 October 2010 at 7:02 AM

Assuming both are Up at zero, and assuming you want a control dial on
BODY to move both, here's how the three pieces of code would look:

First the control dial in BODY:

        valueParm Legs-Down
            {
            name Legs-Down
            initValue 0
            hidden 0
            forceLimits 1
            min 0
            max 1
            trackingScale 0.1
            keys
                {
                static  0
                k  0  0
                }
            interpStyleLocked 0
            }

===================

Then the ERC code for the leg that goes to +90:
(This goes just below the 'interpStyleLocked' line
in the appropriate rotation, probably X-rot.)

            valueOpDeltaAdd
                Figure 1
                BODY
                Legs-Down
            deltaAddDelta 90.0

===================

Then the ERC code for the leg that goes down to -90:
(Again after 'interpStyleLocked' in xrot)

            valueOpDeltaAdd
                Figure 1
                BODY
                Legs-Down
            deltaAddDelta -90.0

My python page
My ShareCG freebies


Cybertenko ( ) posted Fri, 22 October 2010 at 7:04 AM

Thank you, I will try it...


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.