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