CDK Object Reference

The Character Development Kit (CDK) is a set of Softimage Scripting Commands that return special JScript objects. Each object provides access to various components and related scene objects via its properties. For example:

    // Set up the guide collection containing the shoulder, elbow and hand
    var guidecoll = new ActiveXObject("XSI.Collection");
    guidecoll.Add( GetPrim("Null", "ShoulderGuide") );
    guidecoll.Add( GetPrim("Null", "ElbowGuide") );
    guidecoll.Add( GetPrim("Null", "HandGuide") );

    var lXfm = guidecoll(0).Kinematics.Global.Transform
    lXfm.SetTranslationFromValues( 0, 0, 0 );
    guidecoll(0).Kinematics.Global.Transform = lXfm;

    lXfm.SetTranslationFromValues( 4, 0, -2 );
    guidecoll(1).Kinematics.Global.Transform = lXfm;

    lXfm.SetTranslationFromValues( 8, 0, 0 );
    guidecoll(2).Kinematics.Global.Transform = lXfm;

    // Create the arm, getting the pointer to it from the command
    var RArmParent = GetPrim( "Null", "RArmParent" );
    var RArm = MakeArm( RArmParent, guidecoll, "R", null, 0, 0, 0, null, null, 0 );

    // Among other things, the custom Arm object gives you access to the parent of
    // the UpVector, a Skeleton collection of arm chain elements, the Bicep roll
    Application.LogMessage( "UpVector parent: " + RArm.UpVParent.Name );
    var eSkel = new Enumerator( RArm.Skel );
    Application.LogMessage( "Skeleton collection contains: " );
    for ( ; !eSkel.atEnd(); eSkel.moveNext() ) {
       Application.LogMessage( "\t" + eSkel.item().Name );
    }
    Application.LogMessage( "BicepRoll: " + RArm.UpV.Name );

    // Output:
    // INFO : UpVector parent: RRoot
    // INFO : Skeleton collection contains:
    // INFO :  RRoot
    // INFO :  RBicep
    // INFO :  RForearm
    // INFO :  RArmEff
    // INFO : BicepRoll: RArmUpV

This section provides the reference documentation for the following CDK objects:

Object | Available via
Biped | • MakeBiped command
Quadruped | • MakeQuadruped command
Head | • MakeHead command • Biped.Head property • Quadruped.Head property
Arm | • MakeArm command • Biped.RArm property • Biped.LArm property
Hand | • MakeHand command • Biped.RHand property • Biped.LHand property
Belly | • MakeBelly command • Biped.Belly property • Quadruped.Belly property
Spine | • MakeSpine command • Biped.SpineCurve property • Quadruped.SpineCurve property
Torso | • MakeTorso command • Biped.Torso property • Quadruped.Torso property
Tail | • MakeTail command • Biped.Tail property • Quadruped.Tail property • Torso.Tail property
Leg | • MakeLeg command • Biped.RLeg property • Biped.LLeg property • Quadruped.RLeg property • Quadruped.LLeg property
DogLeg | • MakeDogLeg command • Quadruped.RDogLeg property • Quadruped.LDogLeg property
Foot | • MakeFoot command • Biped.RFoot property • Biped.LFoot property • Quadruped.RFoot property • Quadruped.LFoot property
Joint | • MakeJointCompression command • Biped.RElbow property • Biped.RKnee property • Biped.LElbow property • Biped.LKnee property
Shadow | • MakeShadowChain command • MakeShadowSpine command
BicepRoll | • MakeBicepRoll command • Arm.BicepRoll property • Leg.ThighRoll property
ForeArmRoll | • MakeForearmRoll command • Arm.ForeArmRoll property
ControlSpline | • MakeControlSplines command
PointSlide | • Make2PointSlide command • Biped.RHip property • Biped.LHip property • Biped.RBellySlide property • Biped.LBellySlide property
ThighSlide | • MakeThighSlide command • Biped.RThigh property • Biped.LThigh property
UI | • Biped.UI property • Quadruped.UI property

Autodesk Softimage v7.5