| スクリプト (MEL) |
MEL でのみ使用可能 |
fromNativePath |
カテゴリ内: システム, ファイル |
ジャンプ先: 概要. 戻り値. キーワード. MEL 例.
string fromNativePath( string )
Windows で「/」から「¥」にパス フォーマットを変換します。それ以外の場合は、何もしません。スラッシュを使ってパス データを統合しようとする場合にこのプロシージャを利用できます(Maya では、パス名を区切るのに内部的にスラッシュを使用しているので、パスを扱ううえではより安全でプラットフォーム間の互換性に優れています)。
MEL Windows path file , , ,
引数
| 変数名 |
変数タイプ |
説明 |
| $path | string |
変換するパスです。
|
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