RemoveAllCns

Description

Removes all constraints

Scripting Syntax

RemoveAllCns( [ConstrainedObj], [Propagation] );

Parameters

Parameter Type Description
ConstrainedObj String List of objects to be constrained.

Default Value: Selected objects

Propagation Integer Specifies whether to remove constraints from the branch or just the node

Default Value: vbUnspecifiedItemFlag (3)

Possible Values:

Description:

vbNodeItemFlag(0) Remove constraints on the node
vbBranchItemFlag(1) Remove constraints from the branch
vbUnspecifiedItemFlag(3) Depends on whether object is node or branch selected. If an object is branch selected, then remove all constraints from the branch.

Examples

VBScript Example

GetPrim "Null"

Translate , -5.936, 2.999, -0.300, , 4

SetMarking "kine.local.pos"

SaveKey

Duplicate

Translate , 11.557, -0.000, 0.000, , 4

SaveKey

ParentObj "Null", "Null1"

SelectObj "Null", "BRANCH"

Duplicate

Translate , -0.786, -1.521, 0.152, , 4

ApplyCns "Direction", "Null2", "Null"

ApplyCns "Orientation", "Null3", "Null1"

RemoveAllCns "Null2", 1

See Also

RemoveCnsType RemoveCns SIApplyConstraint SIApplyCns