ジャンプ先: 概要. 戻り値. キーワード. 関連項目. フラグ. MEL 例.
containerTemplate [-addBindingSet string] [-addNames] [-addView
string] [-attributeList
string] [-baseName
string] [-bindingSetList
string] [-childAnchor]
[-delete] [-exists] [-expandCompounds boolean]
[-fileName string] [-force] [-fromContainer string] [-layoutMode int] [-load] [-matchFile
string] [-matchName
string] [-parentAnchor]
[-publishedNodeList
string] [-removeBindingSet string]
[-removeView string]
[-rootTransform] [-save] [-searchPath
string] [-silent] [-templateList string] [-unload] [-updateBindingSet string]
[-viewList string]
[string]
containerTemplate は 「元に戻す」が不可能、「照会」が可能、「編集」が可能 です。
コンテナ テンプレートは、コンテナのパブリッシュされたインタフェースの説明です。 このコマンドは、コンテナのテンプレート ファイルを作成して保存したり、既存のテンプレート ファイルをロードしたりする機能を提供します。テンプレートが存在する限り、ユーザはそのテンプレート情報を照会できます。なし
戻り値の型は照会モードでは照会フラグが基になります。
| ロング ネーム(ショート ネーム) | 引数型 | プロパティ | ||
|---|---|---|---|---|
| -exists(-ex) |  | |||
| 
 | ||||
| -load(-l) | ||||
| 
 | ||||
| -save(-s) |  | |||
| 
 | ||||
| -delete(-d) |  | |||
| 
 | ||||
| -unload(-u) |  | |||
| 
 | ||||
| -fromContainer(-fc) | string |  | ||
| 
 | ||||
| -addNames(-an) |  | |||
| 
 | ||||
| -addView(-av) | string |   | ||
| 
 | ||||
| -removeView(-rv) | string |   | ||
| 
 | ||||
| -layoutMode(-lm) | int |  | ||
| 
 | ||||
| -expandCompounds(-ec) | boolean |   | ||
| 
 | ||||
| -addBindingSet(-abs) | string |   | ||
| 
 | ||||
| -updateBindingSet(-ubs) | string |   | ||
| 
 | ||||
| -removeBindingSet(-rbs) | string |   | ||
| 
 | ||||
| -fileName(-fn) | string |   | ||
| 
 | ||||
| -matchFile(-mf) | string |  | ||
| 
 | ||||
| -matchName(-mn) | string |  | ||
| 
 | ||||
| -force(-f) |  | |||
| 
 | ||||
| -attributeList(-al) | string |    | ||
| 
 | ||||
| -viewList(-vl) | string |   | ||
| 
 | ||||
| -publishedNodeList(-pnl) | string |    | ||
| 
 | ||||
| -childAnchor(-can) |   | |||
| 
 | ||||
| -parentAnchor(-pan) |   | |||
| 
 | ||||
| -rootTransform(-rtn) |   | |||
| 
 | ||||
| -bindingSetList(-bsl) | string |   | ||
| 
 | ||||
| -baseName(-bn) | string |   | ||
| 
 | ||||
| -templateList(-tl) | string |  | ||
| 
 | ||||
| -searchPath(-sp) | string |   | ||
| 
 | ||||
| -silent(-si) |    | |||
| 
 | ||||
|  : コマンドの作成モードで使用可能なフラグ |  : コマンドの編集モードで使用可能なフラグ | 
|  : コマンドの照会モードで使用可能なフラグ |  : 1 つのコマンドで複数回使用可能なフラグ | 
// Create a container template using the published attribute information from
// container1.
//
containerTemplate -fromContainer container1 characterRig;
//
// Save the template to a template file in the default template location.
containerTemplate -save characterRig;
//
// Load a template (the template is located along the template search path)
containerTemplate -load characterRig;
//
// Re-load a template that has already been loaded
// This is useful if you have made edits to the template outside of maya
containerTemplate -force -load characterRig;
//
// Determine the file that a template was loaded from
containerTemplate -query -fileName characterRig;
// Result: C:/myTemplates/characterRig.template //
//
// Add a view to a container template. This view will be generated from the
// given container, and will use a group-by-node hierarchical layout.
// The view can be subesequently customized if desired.
//
containerTemplate -edit -addView "newView" -fromContainer container1 -layoutMode 1 characterRig;
containerTemplate -save characterRig;
//
// Add another view to a container template.
// This view will be generated with a default layout and can be
// subsequently customized.
//
containerTemplate -edit -addView "newView2" characterRig;
containerTemplate -save characterRig;
//
// Get the list of attributes in the template.  This will return
// a flat list of attribute names in the order in which they appear
// in the template definition.
//
containerTemplate -query -attributeList characterRig;
// Result:  attribute1 attribute2 attribute3 ...
//
// List all loaded templates
string $list[] = `containerTemplate -query -templateList`;
// List all templates matching a a given template name
// Note that all templates with matching base name (in any package) will
// be returned.
string $matches[] = `containerTemplate -query -templateList -matchName "characterRig"`;
// Result: characterRig
//