移動先: 概要 戻り値 キーワード. MEL 例.

概要

string fromNativePath( string )

Windows で「/」から「'\」にパス フォーマットを変換します。それ以外の場合は、何もしません。 スラッシュを使ってパス データを統合しようとする場合にこのプロシージャを利用できます(Maya では、パス名を区切るのに内部的にスラッシュを使用しているので、パスを扱ううえではより安全でプラットフォーム間の互換性に優れています)。

戻り値

なし

キーワード

MEL Windows path file , , ,

引数

変数名 変数型 説明
$pathstring 変換するパスです。

MEL 例

		string $native = "c:\\examples\\scripts\\second\\city";

		// Note the double backslashes used in input - in MEL, backslash is

		// a special escape character and for it to be understood as the 

		// backslash character, two backslashes must be used

      string $path = fromNativePath( $native );

		// Result: c:/examples/scripts/second/city // On Windows