ClipEffectItem.Expression

Description

Returns the String representation of the expression used by the ClipEffectItem. The valid tokens that can be used in the context of this expression can be found in the "Animating" user's guide.

C# Syntax

// get accessor
String rtn = ClipEffectItem.Expression;

Examples

Python Example

oRoot = Application.ActiveSceneRoot
oCube = oRoot.AddGeometry("Cube", "MeshSurface")	
#Creating the first animation source
oSource = Application.StoreAction(oRoot, "cube.kine.local.posx,cube.kine.local.posy,cube.kine.local.posz", 1, "StoredStaticPose", 1, 1, 5, 0, 0)
#Creating the first clip
oClip = Application.AddClip(oRoot, oSource)	
for i in range(oClip.MappedItems.Count):
	oCurrMappedItem = oClip.MappedItems(i)
	oParam = oCurrMappedItem.Destination
	if oParam.FullName == "cube.kine.local.posy":
		Application.SetMappingRule(oClip.FullName + ".ActionClip",oParam,"frame",i+1)
		break
Application.LogMessage("The expression associated with the posy item is " +oCurrMappedItem.ClipEffectItem.Expression)