getPanel([allConfigs=boolean], [allPanels=boolean], [allScriptedTypes=boolean], [allTypes=boolean], [configWithLabel=string], [containing=string], [invisiblePanels=boolean], [scriptType=string], [type=string], [typeOf=string], [underPointer=boolean], [visiblePanels=boolean], [withFocus=boolean], [withLabel=string])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
getPanel は 「元に戻す」が可能、「照会」が不可能、「編集」が不可能 です。
このコマンドは、パネル、とパネル設定情報を返します。string[] | パネル名の配列 |
ロング ネーム(ショート ネーム) | 引数型 | プロパティ | ||
---|---|---|---|---|
allPanels(all)
|
boolean
|
![]() |
||
|
||||
allTypes(at)
|
boolean
|
![]() |
||
|
||||
allScriptedTypes(ast)
|
boolean
|
![]() |
||
|
||||
visiblePanels(vis)
|
boolean
|
![]() |
||
|
||||
invisiblePanels(inv)
|
boolean
|
![]() |
||
|
||||
type(typ)
|
string
|
![]() |
||
|
||||
scriptType(sty)
|
string
|
![]() |
||
|
||||
containing(c)
|
string
|
![]() |
||
|
||||
underPointer(up)
|
boolean
|
![]() |
||
|
||||
withFocus(wf)
|
boolean
|
![]() |
||
|
||||
typeOf(to)
|
string
|
![]() |
||
|
||||
withLabel(wl)
|
string
|
![]() |
||
|
||||
configWithLabel(cwl)
|
string
|
![]() |
||
|
||||
allConfigs(ac)
|
boolean
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
import maya.cmds as cmds cmds.getPanel( all=True ) cmds.getPanel( type='modelPanel' ) cmds.getPanel( containing='button0' ) cmds.getPanel( underPointer=True ) cmds.getPanel( withFocus=True )