View.Rearrange
 
 
 

View.Rearrange

Introduced

v10.0 (2012)

Description

Rearrange the selected nodes. If no nodes selected, rearrange all nodes. This method is supported on views such as the ICE Tree and the Render Tree.

C# Syntax

View.Rearrange();

Scripting Syntax

View.Rearrange();

Examples

Python Example

#
# Demonstrates how to rearrange the ICE nodes from the 'ICE Tree' view. 
#
from win32com.client import constants
app = Application
installPath = Application.InstallationPath( constants.siFactoryPath )   
scenePath = installPath+"\\Data\\XSI_SAMPLES\\Scenes\\ICE\\Kinematics_2Bone IK.scn"
resolvedScenePath = XSIUtils.ResolvePath( scenePath )
app.NewScene("", "")
app.OpenScene( resolvedScenePath, "", "")
# Open up the ICE tree.
ICETreeView = app.OpenView("ICE Tree")
# Select object with an ICETree
app.SelectObj("pointcloud", "", "")
# Refresh the ICE tree view
ICETreeView.Refresh()
# rearrange the ICETree view
ICETreeView.Rearrange()