ジャンプ先: 概要. 戻り値. キーワード. フラグ. MEL 例.
filePathEditor [-attributeType string] [-copyAndRepath string string] [-deregisterType string] [-force] [-listDirectories string] [-listFiles string] [-listRegisteredTypes] [-preview] [-recursive] [-refresh] [-registerType string] [-relativeNames] [-repath string] [-replaceAll boolean] [-replaceField string] [-replaceString string string] [-status] [-temporary] [-typeLabel string] [-withAttribute]
filePathEditor は、取り消し可能、照会可能、および編集不可能です。
Maya では、テクスチャまたはその他の Maya シーンなどの外部ファイルを参照して使用することができます。このコマンドは、これらのファイル パスに関する情報を取得し、一括で修正するために使用されます。既定では、最も頻繁に使用されるタイプのファイルのみがユーザに表示されます。なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
---|---|---|---|---|
-registerType(-rt)
|
string
|
|||
|
||||
-deregisterType(-dt)
|
string
|
|||
|
||||
-temporary(-tmp)
|
|
|||
|
||||
-listRegisteredTypes(-lrt)
|
|
|||
|
||||
-typeLabel(-tl)
|
string
|
|||
|
||||
-attributeType(-at)
|
string
|
|||
|
||||
-status(-s)
|
|
|||
|
||||
-listDirectories(-ld)
|
string
|
|||
|
||||
-listFiles(-lf)
|
string
|
|||
|
||||
-relativeNames(-rel)
|
|
|||
|
||||
-withAttribute(-wa)
|
|
|||
|
||||
-refresh(-rf)
|
|
|||
|
||||
-repath(-r)
|
string
|
|||
|
||||
-preview(-p)
|
|
|||
|
||||
-recursive(-rc)
|
|
|||
|
||||
-replaceString(-rs)
|
string string
|
|||
|
||||
-replaceField(-rfd)
|
string
|
|||
|
||||
-replaceAll(-ra)
|
boolean
|
|||
|
||||
-copyAndRepath(-cr)
|
string string
|
|||
|
||||
-force(-f)
|
|
|||
|
フラグはコマンドの作成モードで表示できます | フラグはコマンドの編集モードで表示できます |
フラグはコマンドの照会モードで表示できます | コマンド内でフラグを複数回使用できます。 |
//Return the directories of the external files in the Maya scene. // filePathEditor -query -listDirectories ""; //Return the directories of the external files which are saved at the target //location. // filePathEditor -query -listDirectories "c:/textures/"; //Return the files present in the specified directory, but not including the //files in the sub directories. // //Use "withAttribute" to return the associated plugs. // //Use "status" to return whether the file exists. // //For example, if "stone.jpg" exists and it is used by the plug //"node1.imageName", then the returned result will be an ordered pair: //"stone.jpg node1.imageName 1". // filePathEditor -query -withAttribute -status -listFiles "c:/textures/"; //Return the label for the specified type. // //Strings are only guaranteed to be localized for the default types. For the //other types, the strings are user-specified. // filePathEditor -query -typeLabel "imagePlane.imageName"; //Register and save a new file type and type label. // //These are persistent and can be used in future sessions. // filePathEditor -registerType "containerBase.iconName" -registerLabel "ContainerIcon"; //Deregister a file type and clean the saved information. // filePathEditor -deregisterType "containerBase.iconName"; //Register a new non-persistent file type and type label. // filePathEditor -registerType "containerBase.iconName" -registerLabel "ContainerIcon" -temporary; //Deregister a file type without affecting the persistent information. // filePathEditor -deregisterType "containerBase.iconName" -temporary; //Return all registered types, including default types. // filePathEditor -query -listRegisteredTypes; //Query the attribute type for a plug instance. // filePathEditor -query -attributeType node1.fileTextureName; //Refresh all the file path editor's information for the current scene. // filePathEditor -refresh; //Edit the paths in the specified plugs. // //This will replace the directory part with the specified path. // filePathEditor -repath "e:/textures/" node1.fileTextureName node2.fileTextureName //Recursively look for files with the same name in the target directory. Repath //the plugs value to those files. // //Use "force" to edit all the given plugs, even if the original path does not //exist. // //Use "recursive" to find files recursively and to make sure the files do exist. // filePathEditor -repath "e:/textures/" -force -recursive node1.fileTextureName node2.fileTextureName //Preview the result of an operation without doing it. // //Returns the file name and whether the new file exists. This is returned as a //list of pairs. // filePathEditor -preview -repath "e:/textures/" node1.fileTextureName node2.fileTextureName //Replace strings in file paths. // //Here, the string "image" in the directory part will be replaced by "texture". // filePathEditor -replaceField "pathOnly" -replaceString "image" "texture" -replaceAll true node1.fileTextureName node2.fileTextureName //Copy a file from the source to the destination and repath the plug data to the new file. // //Use "force" to overwrite the file at the destination if it has a name clash. // filePathEditor -copyAndRepath "e:/textures" "g:/image" -force true node1.fileTextureName node2.fileTextureName