アクティブなプロジェクトのアクティブなシーンのルート Model を戻します。
| // 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 |