GetNumRelativeValues

Description

Gets the number of relative values set in this interpolator.

Scripting Syntax

GetNumRelativeValues( InputObj )

Parameters

Parameter

Type

Description

InputObj

String

Animated parameter that the interpolator is controlling or the interpolator itself

Default Value: Currently selected and marked parameter

Return Value

Returns the number of data keys in the interpolator controlling the parameter (or the interpolator if it is directly provided)

Examples

VBScript Example

NewScene
CreatePrim "Cone", "MeshSurface"
CreatePrim "Cube", "MeshSurface"
SetExpr "cube.kine.local.posx", "l_interp( cone.kine.global.posx, cone.kine.global.posy )"
SelectObj "cone", , True
SetValue "cone.kine.local.posx", 1
SetValue "cone.kine.local.posy", 1
SetValue "cube.kine.local.posx", 1
SetRelativeValues "cube.kine.local.posx"
SetValue "cone.kine.local.posx", 2
SetValue "cone.kine.local.posy", 2
SetValue "cube.kine.local.posx", 2
SetRelativeValues "cube.kine.local.posx"
l = GetNumRelativeValues( "cube.kine.local.Expression.Interpolator")
logmessage l & " keys "
'INFO : "3 keys "

See Also

GetRelativeValue

RemoveRelativeValue



SOFTIMAGE|XSI v6.01     

Return to Softimage XSI Index