SIObject
ProjectItem
SceneItem
X3DObject
Model
X3DObjectCollection
Parameter
PolygonMesh
Geometry
//软件相对地址的写法
XSIApplication.InstallationPath
//KEY关键帧
Translate(null, -8, 5, 0);
SaveKeyOnKeyable("cylinder1", 1);
Translate(null, 16, 0, 0);
SaveKeyOnKeyable("cylinder1", 25);
Translate(null, 0, -10, 0);
SaveKeyOnKeyable("cylinder1", 50);
Translate(null, -16, 0, 0);
SaveKeyOnKeyable("cylinder1", 75);
Translate(null, 0, 10, 0);
SaveKeyOnKeyable("cylinder1", 100);
// 绘制视图矩形渲染
RenderRegionCreate(siViewportB, 0, 0.5, 0, 0.5);
SetValue("Views.ViewB.RenderRegion.MotionBlur", true, null);
PlayForwardsFromStart();
//表达式的应用
set oDonut = CreatePrim( "Torus", "NurbsSurface" )
SetValue "PlayControl.Out", 100
SaveKey oDonut & ".kine.local.posx", 1, -30
SaveKey oDonut & ".kine.local.posx", 100, 30
AddExpr oDonut & ".kine.local.posy", _
"5*sin(" & oDonut & ".kine.local.posx * 15)", True
//对于CLIP内部关键帧修改
CreatePrim "Grid", "NurbsSurface"
SaveKey "grid.kine.local.posx", 5, 0
SaveKey "grid.kine.local.posx", 30, 5
StoreAction , "/kine.local.pos", 2, "testStoredAction"
AddClip "Scene_Root", "testStoredAction", , , 10
SaveActionKey "grid.kine.local.posx", 20, -2.5
//提供修改器
ApplyOp( "Taper", oCube, 3, 0, null, 0 )
//单选
var myGrid = ActiveSceneRoot.AddGeometry( "Grid", "NurbsSurface" );
Selection.Add( myGrid );
//多选
var myGrid = ActiveSceneRoot.AddGeometry( "Grid", "NurbsSurface" );
var myCylinder = ActiveSceneRoot.AddGeometry( "Cylinder", "MeshSurface" );
Selection.SetAsText( myGrid + "," + myCylinder )