移動先: 概要 戻り値 フラグ. Python 例.

概要

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[]パネル名の配列

フラグ

allConfigs, allPanels, allScriptedTypes, allTypes, configWithLabel, containing, invisiblePanels, scriptType, type, typeOf, underPointer, visiblePanels, withFocus, withLabel
ロング ネーム(ショート ネーム) 引数型 プロパティ
allPanels(all) boolean create
文字配列にある全パネル名を返します。
allTypes(at) boolean create
スクリプトに記述されたタイプ以外の、文字配列にある全パネル タイプ名を返します。
allScriptedTypes(ast) boolean create
文字配列にあるスクリプトに記述されたパネルの全タイプの名前を返します。
visiblePanels(vis) boolean create
文字配列にあるすべての可視パネル名を返します。
invisiblePanels(inv) boolean create
文字配列にあるすべての不可視パネル名を返します。
type(typ) string create
文字配列にある指定したタイプの全パネル名を返します。
scriptType(sty) string create
文字配列にある、指定したタイプのスクリプトに記述された全パネル名を返します。
containing(c) string create
指定したコントロールを含むパネル名を返します。 指定したコントロールがどのパネルにもない場合、空の文字列を返します。
underPointer(up) boolean create
現在マウス カーソルが置かれているパネル名を返します。 マウス カーソルがどのパネルにも置かれていない場合、空の文字列が返されます。
withFocus(wf) boolean create
現在、フォーカスのあるパネル名を返します。フォーカスのあるパネルがない場合、最後にフォーカスのあったパネルを返します。
typeOf(to) string create
指定したパネルのタイプを返します。
withLabel(wl) string create
指定したラベル テキストのあるパネル名を返します。
configWithLabel(cwl) string create
指定したラベル テキストのあるパネル設定の名前を返します。
allConfigs(ac) boolean create
文字配列にあるすべてのパネル設定の名前を返します。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : タプルまたはリストとして渡された複数の引数を持てるフラグ

Python 例

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 )