3ds Max 2010 で導入された ObjExp ExporterPluginは書き出し用ダイアログ ボックスの ASCII ベースの INI ファイルの場所および名前にアクセスするためのインタフェースを公開します。設定の問い合わせおよび変更には、通常の MAXScript INI 設定関数である getIniSetting() および setIniSetting() を使用します。
ObjExp インタフェース:
Interface: iobjexp
メソッド:
<TSTR by value>objExp.getIniName ()
Obj Exporter の設定ファイルの名前を返します。
<TSTR by value>objExp.getPresetIniName ()
Obj Exporter のプリセット ファイルの名前を返します。
例: |
--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 |