次のメソッドでは、3ds Max のシステム ディレクトリにアクセスできます。
[カスタマイズ]/[パス設定]ダイアログ ボックスで指定したファイル タイプに対して設定したディレクトリを文字列として返します。
有効な <filetype_name> 値は次のとおりです。
#animations -- available in 3ds Max 9 and higher #archives -- available in 3ds Max 9 and higher #autoback #defaults #downloads -- available in 3ds Max 9 and higher #drivers #export #expression #font #help #image #import #matlib #maxData -- available in 3ds Max 9 and higher #maxroot #maxstart #pageFile -- available in 3dsMax 2010 and higher #Photometric -- available in 3ds Max 9 and higher #plugcfg #preview #proxies -- available in 3ds Max 9 and higher #renderassets -- available in 3ds Max 9 and higher #renderPresets -- available in 3ds Max 9 and higher #renderoutput -- available in 3ds Max 9 and higher #scene #scripts #sound #startupScripts #temp -- available in 3ds Max 9 and higher #ui #userMacros -- available in 3ds Max 9 and higher #userScripts -- available in 3ds Max 9 and higher #userStartupScripts -- available in 3ds Max 9 and higher #userIcons -- available in 3ds Max 9 and higher #vpost
文字列で指定されたディレクトリを設定します。指定されたファイル タイプの[カスタマイズ]/[パス設定]ダイアログ ボックスで複製されます。
有効な <filetype_name> の値は、 GetDir のものと同じです。
正常に終了した場合は true 、失敗の場合は false を返します。 <string> が有効なパスかどうかの確認は行われません。この関数による変更はすぐに 3dsmax.ini ファイルに反映され、それが持続します。使用の際は注意してください。
システム ディレクトリ名 ID に対応する整数を返す新しいメソッド ConvertDirIDToInt() MAXScript に追加されました。
次のメソッドは、3ds Max の[パスを設定]ダイアログ ボックスにある[ビットマップ]および[外部参照]タブに対応するビットマップ パスおよび外部参照パスの取得、追加、削除を行います。この関数を通じて行った変更は、3dsmax.ini ファイルにすぐに反映されるため、永続的です。
インデックス付きのビットマップ検索パスを文字列として返します。インデックスの基数は 1 です。
インデックス付きのビットマップ検索パスを削除します。インデックスの基数は 1 です。
マップ パスを使用してファイル名を解決し、このファイルが見つかった場合には完全な修飾名を返します。3ds Max 9 以降で使用可能です。