Node Inverse Kinematics Methods

The following methods get and set the node's IK values as seen in the Hierarchy panel, Object Parameters rollout.

getRotTaskWeight <node> 

Returns the rotation binding weight for the node.

setRotTaskWeight <node> <float> 

Sets the rotation binding weight for the node.

getPosTaskWeight <node> 

Returns the position binding weight for the node.

setPosTaskWeight <node> <float> 

Sets the position binding weight for the node.

getTaskAxisState <node> <pos_or_rot_integer> <axis_integer> 

Returns true or false to indicate if the specified axis is turned on for position or rotation binding. If an axis is turned off, the specified axis is no longer influenced by the follow object or the IK Controller Position end effector. <pos_or_rot_integer> sets whether the method returns the position state or the rotation state: 0 specifies position and 1 specifies rotation . <axis_integer> sets the axis to check: 0 specifies X, 1 specifies Y, and 2 specifies Z.

setTaskAxisState <node> <pos_or_rot_integer> <axis_integer> <boolean> 

Sets the axis state for position or rotation binding to the specified boolean value. See getTaskAxisState() for a description of the parameters.

mirrorIKConstraints <node> <axis_integer> <pos_or_rot_integer> 

Mirrors the specified IK constraints on the specified node's transform controller about the specified axis . <axis_integer> specifies the axis of reflection: 0 for X, 1 for Y, and 2 for Z . <pos_or_rot_integer> specifies which type of constraints are being mirrored: 0 for position and 1 for rotation.

nodeIKParamsChanged <node> 

Call this method when one of the node level IK parameters has been changed.

OKToBindToNode <ik_node> <node> 

Returns true if the <ik_node> can be bound to the <node> as a follow object, false otherwise. If the <ik_node> is not part of an IK system, this method always returns true . This method tests <node> to see if its transform is dependent on the IK system, and returns false if it is.