ActionDeltaItem.Mute

ActionDeltaItem.Mute

説明

アクションデルタ項目がミュートされているかどうかを示すBoolean値を設定したり、戻したりします(ミュートされている場合は true、アクティブの場合は false)。

C#構文

// get accessor

Boolean rtn = ActionDeltaItem.Mute;

// set accessor

ActionDeltaItem.Mute = Boolean;

JScript の例

/*

	This example demonstrates how to mute a 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 );

// 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	

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

// Mute the Item

oActionDeltaItem.Mute = true;

// Print the name of the mute ActionDeltaItem

Application.LogMessage("muting " + oActionDeltaItem.Name);

// Apply modification on the target reference asset container (the reference model)

oDelta.Apply()

// Reload the reference model to reset cube.kine.local.posx value

UpdateReferencedModel("Model");

// Output of above script:

//INFO : muting cube.kine.local.posx

関連項目

Delta.Mute