View.Rearrange

導入

v10.0 (2012)

詳細

選択したノードを再配置します。ノードが選択されていない場合、すべてのノードを再配置します。このメソッドは、ICE Tree および Render Tree などのビューでサポートされています。

スクリプト 構文

View.Rearrange();

Python の例

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