ジャンプ先: 概要. 戻り値. 関連. フラグ. MEL 例.
 namespaceInfo [-absoluteName] [-baseName] [-currentNamespace] [-dagPath] [-fullName] [-internal] [-isRootNamespace string] [-listNamespace] [-listOnlyDependencyNodes] [-listOnlyNamespaces] [-parent] [-recurse] [-shortName] 
string
      
namespaceInfo は、取り消し可能、照会不可能、および編集不可能です。
このコマンドは、ネームスペースに関する情報を表示します。必要に応じて、コマンド ラインでターゲット ネームスペースを指定できます。ネームスペースを指定しない場合は、現在のネームスペースに関する情報が表示されます。 ネームスペースとは、特定の名前で複数のオブジェクトを単にグループ化したものです。ネームスペース内の各項目は、項目名と所属するネームスペースの組み合わせで識別することができます。ネームスペースには、他のネームスペースをセットのように含むことができますが、すべてのネームスペースは接続されていてはならない、という制約があります。 ネームスペースは、主に Maya での名前の衝突を回避するために使用されます。名前の衝突とは、ファイルを読み込んだ場合などに、新規のオブジェクトが既存のオブジェクトと同じ名前を持つことを指します。ネームスペースを使用すると、2 つのオブジェクトが別のネームスペースにあれば、同じ名前を付けることができます。 ネーム グループは名前を単にグループ化したものであり、選択、DAG、ディペンデンシー グラフ、その他いかなる Maya の機能にも影響しないことに注意してください。すべてのネームスペース名は、コロンで区切ります。 ネームスペース フォーマットのフラグは、「baseName」(「shortName」)、「fullName」、および「absoluteName」です。このフラグをメインの照会フラグと組み合わせて使用することで、返された結果の目的のネームスペース フォーマットを指定します。指定したネームスペースの別のフォーマットを返す場合にも使用できます。既定では、フォーマットが指定されていない場合、結果はフル ネームとして返されます。| string | 
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
| -listNamespace(-ls) |  |   | ||
| 
 | ||||
| -currentNamespace(-cur) |  |   | ||
| 
 | ||||
| -isRootNamespace(-ir) | string |   | ||
| 
 | ||||
| -parent(-p) |  |   | ||
| 
 | ||||
| -listOnlyDependencyNodes(-lod) |  |   | ||
| 
 | ||||
| -listOnlyNamespaces(-lon) |  |   | ||
| 
 | ||||
| -recurse(-r) |  |   | ||
| 
 | ||||
| -dagPath(-dp) |  |   | ||
| 
 | ||||
| -shortName(-sn) |  |   | ||
| 
 | ||||
| -baseName(-bn) |  |   | ||
| 
 | ||||
| -fullName(-fn) |  |   | ||
| 
 | ||||
| -absoluteName(-an) |  |   | ||
| 
 | ||||
| -internal(-int) |  |   | ||
| 
 | ||||
|  フラグはコマンドの作成モードで表示できます |  フラグはコマンドの編集モードで表示できます | 
|  フラグはコマンドの照会モードで表示できます |  コマンド内でフラグを複数回使用できます。 | 
// List the contents of the current namespace // namespaceInfo -listNamespace; // List the parent of the current namespace // namespaceInfo -parent; // List the parent of the current namespace with short name // namespaceInfo -parent -shortName; // Determine if the current namespace is root // namespaceInfo -rootNamespace; // List the parent of the current namespace with absolute name // namespaceInfo -parent -absoluteName; // List dependency nodes including internal nodes // namespaceInfo -listOnlyDependencyNodes -internal; // samples of query info of specified namespace namespace -set ":"; namespace -add "sample"; namespace -set ":sample"; namespace -add "sun"; // List the contents of the specified namespace // namespaceInfo -listNamespace ":sample"; // result: "sample:sun" // List the parent of the specified namespace // namespaceInfo -parent ":sample:sun"; // result: "sample" // List the parent of the specified namespace with baseName name // namespaceInfo -parent -baseName ":sample:sun"; // result: "sample" // Determine if the specified namespace is root // namespaceInfo -isRootNamespace ":"; // result: true // List the parent of the specified namespace with absolute name // namespaceInfo -parent -absoluteName ":sample:sun"; // result: ":sample" // List dependency nodes // namespaceInfo -listOnlyNamespaces ":sample"; // // result: "sample:sun" // Query the namespace name and have it returned in different formats // namespaceInfo -baseName ":sample:sun"; // result: "sun" namespaceInfo -fullName ":sample:sun"; // result: "sample:sun" namespaceInfo -absoluteName "sample:sun"; // result: ":sample:sun"