MEL for procedurally creating SplineIK ??


#1

How do I create a splineIK using MEL.

I am unable to recreate it by using the MEL code spit out in the script editor when I create it by using the spline ik tool context. That is first selecting the tool spline ik from skeleton menu and after that selecting the first and last joint of the joint chain and then selecting the curve. It creates fine when using the tool context interactively but i cant replicate the code in MEL. Any help will be greatly appreciated.

Aby


#2

I’m pretty sure that you use “ikHandle” with -startJoint and -endEffector. Like this:

// specify the curve
  ikHandle -sj joint1 -ee joint7 -solver ikSpline -curve myCurve -name mySplineIK;
  
  // auto create curve
  ikHandle -sj joint1 -ee joint7 -solver ikSpline -createCurve true -name mySplineIK;

You can find the rest of the options in the command reference under “ikHandle”. Make sure to replace the code with your joints and curve if you have one.


#3

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.