#
# 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() |