Delta.ActionDeltas

説明

デルタの各 ActionDelta オブジェクトを含む ActionDeltaCollection を戻します。

C#構文

// get accessor

ActionDeltaCollection rtn = Delta.ActionDeltas;

JScript の例

/* 

	This example shows how to add static value delta items to an ActionDelta

*/ 

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 );

// Add the Delta object

var oDelta = AddDelta(oCube.Model);

// Add an action of type siModificationDeltaStaticValue

var oDeltaAction = oDelta.AddAction(siModificationDeltaStaticValue)

// Add the Static value item	

oDeltaAction.AddStaticValueItem(oCube + ".kine.global.posx", 10);

oDeltaAction.AddStaticValueItem(oCube + ".kine.global.posy", 10);

// Get the ActionDelta collection

var oActionDeltaColl = oDelta.ActionDeltas;

for (var i=0; i<oActionDeltaColl.Count; i++) {	

	 // Print ActionDelta

	 Application.Logmessage(oActionDeltaColl(i).Name);

}

// Output of above script:

//INFO : StoredPositions