AddConstraintItem (ActionDelta)
Description
Adds a new ActionDeltaItem of type siModificationDeltaConstraint to an ActionDelta created with the Delta.AddAction method.
The ActionDelta should be of type siModificationDeltaConstraint to use this method (see siModificationDeltaType for a list of ActionDelta types).
Scripting Syntax
ActionDelta.AddConstraintItem( Preset, Targets, Sources, [Compensation], [TargetOffset], [SourceOffset] )
C# Syntax
ActionDeltaItemCollection ActionDelta.AddConstraintItem( Object in_cnsPreset, Object in_cnsned, Object in_cnsning, Boolean in_bComp, Object in_offsetCnsned, Object in_offsetCnsning );Parameters
|
Parameter |
Type |
Description |
|
Preset |
Type of constraint to add to object |
|
|
Targets |
Object(s) that will be constrained (see Constraint.Constrained) |
|
|
Sources |
Object(s) that will act as constrainers (see Constraint.Constraining) |
|
|
Compensation |
Compensation mode, True to turn on compensation. Default Value: False |
|
|
TargetOffset |
Target Attachment Point (Distance, Position constraints). |
|
|
SourceOffset |
Source Attachment Point (Distance, Position, Surface, Trajectory constraints). Rotation Offset (Orientation constraint), Translation Offset (Direction constraint), Scaling Offset (Scaling constraint) |
Return Value
Examples
JScript Example
/* See the example on the documentation page for the ActionDelta object */
See Also
Autodesk Softimage v7.5