XSIApplication.ActiveSceneRoot

Description

Returns the root Model of the active scene of the active project.

C# Syntax

// get accessor

Model rtn = XSIApplication.ActiveSceneRoot;

Examples

VBScript Example

'

' Create a cube and circle, Constraint the cube to the circle

' and animate the cube moving round the circle by keying

' the path percentage

'

set oCube = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" )

set oPath = ActiveSceneRoot.AddGeometry( "Circle", "NurbsCurve" )

set oConstraint = oCube.Kinematics.AddConstraint("Path", oPath )

oConstraint.perc.addfcurve2( Array( 0, 0, 100, 100 ) )

PlayForwardsFromStart

See Also

XSIApplication.ActiveProject2 XSIProject.ActiveScene Scene.Root