--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
|