panel [-control] [-copy string] [-createString] [-defineTemplate string] [-docTag string] [-editString] [-exists] [-init] [-isUnique] [-label string] [-menuBarRepeatLast boolean] [-menuBarVisible boolean] [-needsInit] [-parent string] [-popupMenuProcedure script] [-replacePanel string] [-tearOff] [-tearOffCopy string] [-tearOffRestore] [-unParent] [-useTemplate string]
string
panel は、取り消し可能、照会可能、および編集可能です。
パネルのプロパティの編集または照会ができます。パネルの共通プロパティの中には、このコマンドで使用できないものもあります。-tearOff や -replacePanel などのフラグでは、明示的なパネル コマンドを使用する必要があります。コマンド「getPanel -typeOf panelName」では、パネルの明示的なタイプを返します。なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
-control(-ctl)
|
|
|
||
|
||||
-copy(-cp)
|
string
|
|
||
|
||||
-createString(-cs)
|
|
|
||
|
||||
-defineTemplate(-dt)
|
string
|
|
||
|
||||
-docTag(-dtg)
|
string
|
|
||
|
||||
-editString(-es)
|
|
|
||
|
||||
-exists(-ex)
|
|
|
||
|
||||
-init(-in)
|
|
|
||
|
||||
-isUnique(-iu)
|
|
|
||
|
||||
-label(-l)
|
string
|
|
||
|
||||
-menuBarRepeatLast(-mrl)
|
boolean
|
|
||
|
||||
-menuBarVisible(-mbv)
|
boolean
|
|
||
|
||||
-needsInit(-ni)
|
|
|
||
|
||||
-parent(-p)
|
string
|
|
||
|
||||
-popupMenuProcedure(-pmp)
|
script
|
|
||
|
||||
-replacePanel(-rp)
|
string
|
|
||
|
||||
-tearOff(-to)
|
|
|
||
|
||||
-tearOffCopy(-toc)
|
string
|
|
||
|
||||
-tearOffRestore(-tor)
|
|
|
||
|
||||
-unParent(-up)
|
|
|
||
|
||||
-useTemplate(-ut)
|
string
|
|
||
|
||||
string $MyLabel = "My Panel";
window;
frameLayout -lv 0;
modelPanel -l $MyLabel;
showWindow;
string $panels[] = `getPanel -all`;
string $myPanel;
int $i;
for ($i = 0; $i < size($panels); $i++) {
if ($MyLabel == `panel -q -label $panels[$i]`) {
$myPanel = $panels[$i];
print("Found "+$MyLabel+"\n");
}
}