ワールド空間モディファイヤ - 検証のメソッド

次のメソッドを使用すると、指定されたオブジェクトにスペース ワープを適用できるかどうかを判別することができます。

このメソッドは 3ds Max 2008 以上で使用できるようになりました。

< Boolean>IsSpaceWarpValid <Scene Object>object <Space warp>warp

指定されたスペース ワープを指定されたシーン オブジェクトに追加できる場合には true、それ以外の場合には false を返します。

object - スペース ワープの適用先にしたい任意のシーン オブジェクトです。

warp - 任意のスペース ワープ オブジェクト インスタンスです。

使用例:

(
local b = box()
local p = parray()
local o = omnilight()
for class in SpacewarpObject.classes do(
if (class.creatable) then (
local inst = class()
for obj in #(b,p,o) do (
if (IsSpaceWarpValid obj inst) then
format "+% can be applied to %\n" class obj
else
format "-% CANNOT be applied to %\n" class obj
)--end obj loop
)--end if creatable
)--end class loop
)--end script

結果:

+SpaceBend can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+SpaceBend can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-SpaceBend CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+SpaceTaper can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+SpaceTaper can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-SpaceTaper CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+Spaceripple can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+Spaceripple can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-Spaceripple CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+Spacewave can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+Spacewave can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-Spacewave CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+SpaceTwist can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+SpaceTwist can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-SpaceTwist CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+SpaceStretch can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+SpaceStretch can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-SpaceStretch CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+gravity can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+gravity can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-gravity CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+Wind can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-Wind CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+Spacedisplace can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+Spacedisplace can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-Spacedisplace CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+Deflector can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+Deflector can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-Deflector CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+Bomb can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
-Bomb CANNOT be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-Bomb CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+PDynaFlect can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+PDynaFlect can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-PDynaFlect CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+Vortex can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+Vortex can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-Vortex CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+UOmniFlect can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+UOmniFlect can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-UOmniFlect CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+UDeflector can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+UDeflector can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-UDeflector CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+PushSpaceWarp can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+PushSpaceWarp can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-PushSpaceWarp CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+ConformSpaceWarp can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+ConformSpaceWarp can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-ConformSpaceWarp CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+SDynaFlect can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+SDynaFlect can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-SDynaFlect CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+Drag can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+Drag can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-Drag CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+WaterSpaceWarp can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+WaterSpaceWarp can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-WaterSpaceWarp CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+PBomb can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+PBomb can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-PBomb CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+POmniFlect can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+POmniFlect can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-POmniFlect CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+Motor can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+Motor can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-Motor CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+SOmniFlect can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+SOmniFlect can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-SOmniFlect CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+SpaceFFDBox can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+SpaceFFDBox can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-SpaceFFDBox CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+UDynaFlect can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+UDynaFlect can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-UDynaFlect CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+SDeflector can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+SDeflector can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-SDeflector CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+SpaceSkew can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+SpaceSkew can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-SpaceSkew CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+Vector_Field can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+Vector_Field can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-Vector_Field CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+Path_Follow can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+Path_Follow can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-Path_Follow CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+SpaceNoise can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+SpaceNoise can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-SpaceNoise CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
+SpaceFFDCyl can be applied to $Box:Box04 @ [0.000000,0.000000,0.000000]
+SpaceFFDCyl can be applied to $PArray:PArray03 @ [0.000000,0.000000,0.000000]
-SpaceFFDCyl CANNOT be applied to $Omni_Light:Omni03 @ [0.000000,0.000000,0.000000]
OK