ConstraintCollection

 

Introduced

1.5

Description

A collection of Constraint objects. This collection is 0-based.

Methods

ConstraintCollection.Filter

ConstraintCollection.Find

ConstraintCollection.GetAsText

Properties

ConstraintCollection.Count

ConstraintCollection.Item

Examples

VBScript Example

'VBScript example
Dim oRoot, oNull, oSphere
set oRoot = Application.ActiveProject.ActiveScene.Root
set oNull = oRoot.AddNull
set oSphere = oRoot.AddGeometry("Sphere","MeshSurface")
oSphere.Kinematics.AddConstraint "Direction", oNull
oSphere.Kinematics.AddConstraint "Direction", oNull
oSphere.Kinematics.AddConstraint "Direction", oNull
set oConstraints = oSphere.Kinematics.Constraints
LogMessage typename(oConstraints)
for each oCns in oConstraints
   LogMessage oCns.Name
next

See Also

Kinematics.Constraints



Autodesk Softimage v7.5