Forum: Poser Technical


Subject: Quick Questions

illicit opened this issue on May 05, 2003 ยท 14 posts


lesbentley posted Tue, 06 May 2003 at 3:00 PM

You can use ERC to open the doors from the main cabinet, paste two instances of the following channel in the main cabinet actor. Edit the second instance, replacing both instances of "OpenLeftDoor" with "OpenRightDoor". There is a line with "channels" followed by a line woth a "{" place the code under that. valueParm OpenLeftDoor { name OpenLeftDoor initValue 0 hidden 0 forceLimits 0 min -100000 max 100000 trackingScale 0.004 keys { static 0 k 0 0 } } Now find the actor for the left door, within that actor find the "rotateY" channel. Scrole down to a line that says "interpStyleLocked". Under that line paste the following code to slave the "rotateY" channel to the "valueParm OpenLeftDoor" channel: valueOpDeltaAdd Figure 1 cabinet:1 OpenLeftDoor deltaAddDelta 1.000000 where in the above code "cabinet:1" is the name of the actor that contains the master channel. The number after "Figure" and "cabinet:" should be consistant with the figure number of your cr2, the number 1 above is only an example. Actually in Poser 4 you can usually leave the colon and number out altogether. Find the actor for the right door, and its "rotateY" channe, paste in the same code snippet, changing the line "OpenLeftDoor" to "OpenRightDoor". Now resave the file and test it. --- Notes: Much of this is case sensitive. The slaved channel will read its value from any channel named "OpenLeftDoor", it does not have to be a "valueParm" channel. The number after the "deltaAddDelta" determins the controle ratio (strangth of the effect on the dial), 1.000000=1:1. Figures that use ERC suffer from crosstalk. This means that if two figurs with the same master channel names are loaded into a document you get problems, the best way to fix this is with a NULL figure. If you prefer you can use one dial to open both doors at once just name the valueParm channel "OpenDoors" and replace "OpenLeftDoor" and "OpenRightDoor" in the slaved channels with "OpenDoors".