//
// This JScript example creates several objects and then changes
// their child order using several of the ReorderSceneItem options.
//
NewScene(null, false);
GetPrim("Null");
NullMarker = GetPrim("Null");
GetPrim("Null");
GetPrim("Null");
NullToMove = GetPrim("Null");
// If you open the Explorer and change the "General Sort" option to "None (creation)"
// you'll see that we have null, null1, null2, null3, null4.
// Move "null4" after "null1".
ReorderSceneItem("Scene_Root", NullToMove, 2, NullMarker);
// Now make "null4" the first child.
ReorderSceneItem("Scene_Root", NullToMove, 0); |