getPanel [-allConfigs] [-allPanels] [-allScriptedTypes] [-allTypes] [-atPosition int int] [-configWithLabel string] [-containing string] [-invisiblePanels] [-scriptType string] [-type string] [-typeOf string] [-underPointer] [-visiblePanels] [-withFocus] [-withLabel string]
getPanel は、取り消し可能、照会不可能、および編集不可能です。
このコマンドは、パネル、とパネル設定情報を返します。| string[] | パネル名の配列 |
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
-allConfigs(-ac)
|
|
|
||
|
||||
-allPanels(-all)
|
|
|
||
|
||||
-allScriptedTypes(-ast)
|
|
|
||
|
||||
-allTypes(-at)
|
|
|
||
|
||||
-atPosition(-ap)
|
int int
|
|
||
|
||||
-configWithLabel(-cwl)
|
string
|
|
||
|
||||
-containing(-c)
|
string
|
|
||
|
||||
-invisiblePanels(-inv)
|
|
|
||
|
||||
-scriptType(-sty)
|
string
|
|
||
|
||||
-type(-typ)
|
string
|
|
||
|
||||
-typeOf(-to)
|
string
|
|
||
|
||||
-underPointer(-up)
|
|
|
||
|
||||
-visiblePanels(-vis)
|
|
|
||
|
||||
-withFocus(-wf)
|
|
|
||
|
||||
-withLabel(-wl)
|
string
|
|
||
|
||||
getPanel -all;
getPanel -type modelPanel;
getPanel -containing button0;
getPanel -underPointer;
getPanel -withFocus;
// Whenever the hotBox's 'noClickCommand' is invoked, have it switch the
// main Maya view to a single pane configuration, displaying the panel
// which was under the mouse pointer at the time the 'hotBox' command was
// executed.
global proc panePopAt(int $x, int $y)
{
string $panel = `getPanel -atPosition $x $y`;
if ($panel != "") {
doSwitchPanes(1, { "single", $panel });
}
}
hotBox -noClickCommand panePopAt -noClickPosition;