ObjExp : ExporterPlugin
The ObjExp ExporterPlugin 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().
ObjExp Interfaces:
Methods:
<TSTR by value>objExp.getIniName ()
Returns the name of the Obj Exporter Settings file.
<TSTR by value>objExp.getPresetIniName ()
Returns the name of the Obj Exporter Preset file.
EXAMPLE:
|
--Open the INI file for editing in the MAXScript Editor
edit (objexp.getIniName())
--Alternatively, use INI file access to read and write:
theINI =objimp.getIniName()
getIniSettingtheINI--get INI file categories
-->#("General", "Geometry", "Material", "Output", "Optimize")
--get the keys of the General category:
getIniSetting theINI"General"
-->#("UseLogging", "Preset", "MapSearchPath")
--get the value of the General >Use Logging key:
getIniSetting theINI"General" "UseLogging"
-->"1"
--Turn Loggingoff:
setIniSetting theINI"General" "UseLogging" "0"
-->true
|