World Space Modifiers - Validity Methods

The following method can be used to determine whether a Space Warp can be applied to a given object.

This method is available in 3ds Max 2008 and higher.

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

Returns true if it is possible to add the given space warp to the specified scene object, false otherwise.

object &endash; Any scene object that you want to apply theSpaceWarp too.

warp &endash; AnySpaceWarpobject instance.

EXAMPLE USAGE:

(
localb = box()
localp = parray()
localo = omnilight()
forclassinSpacewarpObject.classesdo(
if( class.creatable )then(
localinst = class()
forobjin#(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

RESULT:

+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