ObjImp : ImporterPlugin

The ObjImp ImporterPlugin introduced in 3ds Max 2010 exposes an interface to access the ASCII-based INI files location and name of the exporter dialog. The settings can then be queried and modified using the regular MAXScript INI settings functions getIniSetting() and setIniSetting() .

ObjImp Interfaces:

Interface: iobjimp 

Methods:

<TSTR by value>objImp.getIniName ()   

Returns the name of the Obj Importer Settings file.

   

<TSTR by value>objImp.getPresetIniName () 

Returns the name of the Obj Importer Preset file.

   

EXAMPLE:

--Open the INI file for editing in the MAXScript Editor
edit (objimp.getIniName())
 
--Alternatively, use INI file access to read and write:
theINI =objimp.getIniName()
getIniSetting theINI--get INI file categories
-->#("General", "Objects", "Geometry", "Units/Scale", "Material")
 
--get the keys of the General category:
getIniSetting theINI "Geometry"
-->#("FlipZyAxis", "CenterPivots", "Shapes", "TextureCoords", "SmoothingGroups", "NormalsType", "SmoothAngle", "FlipNormals")
 
--get thevalueof theGeometry>Shapeskey:
getIniSetting theINI "Geometry""Shapes"
-->"0"
 
--TurnShapes on:
setIniSetting theINI "Geometry""Shapes" "1"
-->true

See Also