Returns the root Model of the active scene of the active project.
// get accessor Model rtn = XSIApplication.ActiveSceneRoot; |
' ' 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 |