Forum: Poser - OFFICIAL


Subject: Multi-JCM Question

Channing opened this issue on Nov 06, 2009 · 44 posts


Channing posted Thu, 12 November 2009 at 4:12 PM

Figured it out. The k 0 1 line had been altered to k 0 0, which inactivated the JCM. 

So the final code is:
targetGeom RightSideIn

{

 name RightSideIn

 initValue 0

 hidden 0

 forceLimits 1

 min 0

 max 1

 trackingScale 0.01

 keys

 {

  static 0

  k 0 0

 }

 interpStyleLocked 0

 valueOpDeltaAdd

   Figure

   rThigh

   zrot

 deltaAddDelta 0.06667

 indexes 0

 numbDeltas 0

 deltas

 {

 }

}

targetGeom RightBendFwd

{

 name RightBendFwd

 initValue 0

 hidden 0

 forceLimits 1

 min 0

 max 1

 trackingScale 0.01

 keys

 {

  static 0

  k 0 0

 }

 interpStyleLocked 0

 valueOpDeltaAdd

   Figure

   rThigh

   xrot

 deltaAddDelta -0.01

 indexes 0

 numbDeltas 0

 deltas

 {

 }

}

targetGeom JCMrThBdSdSdIn

{

 name JCMrThBdSdSdIn

 initValue 1

 hidden 0

 forceLimits 1

 min 0

 max 1

 trackingScale 0.01

 keys

 {

  static 0

  k 0 1

 }

 interpStyleLocked 0

 valueOpTimes

   Figure

   rThigh

   RightSideIn

 valueOpTimes

   Figure

   rThigh

   RightBendFwd

 indexes 501

 numbDeltas 4462

 deltas

 {

 }

}



So, what this does is:

  1. RightBendFwd and RightSideIn channels evaluate the x and z rotations in the right thigh.
  2. If either one is positive, they will report a value between 0 and 1 to the JCM.
  3. The JCM is set initially to 1. It is multiplied by the values of RightBendFwd and RightSideIn, so if either reports a value less than 0, the value of the JCM is zero.<br></br><br></br><br></br>