RemoveAllItems (ActionDelta)

Description

Removes all ActionDeltaItems from the ActionDelta.

C# Syntax

    ActionDelta.RemoveAllItems();

Examples

JScript Example

    /*
       This example demonstrates how to remove all ActionDeltaItem
    */

    NewScene (null, false);

    // Create a reference model from a cube
    var oRoot = Application.ActiveProject.ActiveScene.Root;
    var oCube = oRoot.AddGeometry("Cube", "MeshSurface");
    var emdlFileRefModel = XSIUtils.BuildPath(Application.InstallationPath(siProjectPath), "Models", "MyModel.emdl");
    CreateModelAndConvertToRef(oCube , emdlFileRefModel);

    // Translate the 3D Objects
    Translate(oCube, 3.0, 3.0, 0.0, siRelative, siView, siObj, siXYZ, null, null, null, null, null, null, null, null, null, 0, null);

    // Get the Delta object
    var oDelta = Dictionary.GetObject("Model.Delta");

    // Add an action of type siModificationDeltaConstraint
    var oActionDelta = oDelta.ActionDeltas(0);

    // Print the name of the ActionDelta
    Application.Logmessage(oActionDelta.Name);

    // Remove all ActionDeltaItems
    oActionDelta.RemoveAllItems();

    // Output of above script:
    //INFO : StoredPositions

See Also

ActionDelta.RemoveItem | Delta.RemoveAction

Autodesk Softimage v7.5