インタフェース > コア インタフェース > IsolateSelection |
このコア インタフェースは分離ツール機能を MAXScript に公開します。
3ds Max 2013 以前のバージョンでは、MAXScript を使用して分離ツールが実装されました。
3ds Max 2013 では、ユーザ インタフェースの中核としてこの機能が再実装されました。
メソッド:
<boolean>IsolateSelection.EnterIsolateSelectionMode()
分離ツール モードに入ります。
正常にモードに入った場合は True を、すでに分離ツール モードになっている場合は False を返します。
<boolean>IsolateSelection.ExitIsolateSelectionMode()
分離ツール モードを終了します。
正常に終了できた場合は True を、分離ツール モードでなかった場合は False を返します。
<boolean>IsolateSelection.IsolateSelectionModeActive()
分離ツール モードの場合は True を、そうでない場合は False を返します。
<boolean>IsolateSelection.IsNodeIsolated <node>node
指定されたノードが分離されている場合(3ds Max が分離ツール モードで、指定したノードがこのモードの呼び出し時に選択された場合)は True を返します。
分離ツール モードがアクティブではない場合、またはノードが選択されずに分離ツール プロセスで非表示の場合は、False が返されます。
<void>IsolateSelection.SuppressIsolateSelectionWarningDialogue <boolean>bSuppress
引数が True の場合、分離ツール警告は表示されません。
引数が False の場合、分離されたオブジェクトでシーンが開かれるときに、分離ツール警告が発行されます。
例: |
s = Sphere() --create a sphere -->$Sphere:Sphere001 @ [0.000000,0.000000,0.000000] b = Box pos:[50,0,0] --create a box -->$Box:Box001 @ [50.000000,0.000000,0.000000] c = Cone pos:[-50,0,0] --create a cone -->$Cone:Cone001 @ [-50.000000,0.000000,0.000000] select s --select the sphere -->OK IsolateSelection.EnterIsolateSelectionMode() --isolate it - it works! -->true IsolateSelection.EnterIsolateSelectionMode() --cannot isolate again -->false IsolateSelection.IsolateSelectionModeActive() --check if in Isolate Mode -->true IsolateSelection.IsNodeIsolated s --check if the sphere is isolated -->true IsolateSelection.IsNodeIsolated b --check if the box is isolated -->false IsolateSelection.IsNodeIsolated c --check if the cone is isolated -->false holdMaxFile() --hold the scene -->OK IsolateSelection.SuppressIsolateSelectionWarningDialogue false --enable warning -->OK fetchMaxFile() --fetch, answer prompt with Yes - an Isolation warning will follow -->OK --NOTE that 'fetchMaxFile quiet:true' will suppress both the prompt and the warning IsolateSelection.SuppressIsolateSelectionWarningDialogue true --suppress the warning -->OK fetchMaxFile() --fetch, answer prompt with Yes - no Isolation warning will follow. -->OK IsolateSelection.ExitIsolateSelectionMode() --exist the Isolate Mode -->true IsolateSelection.ExitIsolateSelectionMode() --can't exit again, already off -->false |