ジャンプ先: 概要. 戻り値. キーワード. MEL 例.

概要

string toNativePath( string )

Windows の場合は「/」から「¥¥」にパス フォーマットを変換します。それ以外では何も行いません。このプロシージャは、Maya から読み出したパス名を Windows のような円記号で分割したパス名に変換するために使用します(ほとんどの Windows システムでのコールは、パスの区切り記号としてスラッシュを処理します)。

戻り値

なし

キーワード

MEL Windows path file ,

引数

変数名 変数タイプ 説明
$pathstring 変換するパスです。

MEL 例

      // Find a file in a subdirectory of the current one

      string $file = `workspace -q -fn`;
		// Result: D:/Projects/projectOne/scene2 // On Windows

      string $path = toNativePath( $file );
		// Result: D:\Projects\projectOne\scene2 // On Windows