Miscellaneous Functions

freeSceneBitmaps() 	 

Frees up all the memory used by the image file bitmap caches. This is useful if memory is fragmented with a lot of different bitmaps and you want to have just the ones currently active reloaded.

   

rescaleWorldUnits <factor> [ #selOnly ]   

This method provides functionality similar to that of Rescale World Utility plug-in in 3ds Max. <factor> is the factor the objects should be scaled by. If #selOnly is specified then only the selected objects are scaled.

   

IsNetServer() 

Returns true if 3ds Max is operating in network rendering mode and false if operating in normal interactive mode.

   

loadDllsFromDir <directory_path_string> <filename_wildcard_string> 

Load all the plug-ins found in the specified directory. The directory_path_string must be terminated with a '\'.

EXAMPLE

LoadDllsFromDir "f:\\maxsdk\\plugin\\" "*.dlc"

   

scanForNewPlugins includeUnknownSuperclasses:<bool> 

Scans for new plug-in classes and exposes the classes to MAXScript. Typically called after calling loadDllsFromDir() .

If includeUnknownSuperclasses: is false (the default), classes with unknown superclasses are ignored.

Available in 3ds Max 2008 and higher. Previously available via the [AVG] DLX Extension.

   

maxVersion() 

Returns an Array with three integers like #(3000, 6, 0) with 3ds Max release number, max API number, revision number of the SDK.

   

getMAXWindowSize() 

Returns the 3ds Max window size in pixels.

   

getMAXWindowPos() 

Returns the 3ds Max window position in pixels relative to the upper left corner of the desktop. Returns [-4,-4] when the application is maximized.

   

swap <destination> <destination> 

Takes two valid assignment destinations (property, array index, or variable) as arguments and swaps their values.

EXAMPLE

swap myMaterial.diffuseMap.map1 myMaterial.diffuseMap.map2