ジャンプ先: 概要. 戻り値. フラグ. Python 例.
workspaceControl(
[name]
, [checksPlugins=boolean], [close=boolean], [closeCommand=script], [collapse=boolean], [defineTemplate=string], [dockToControl=[string, string]], [dockToMainWindow=[string, boolean]], [dockToPanel=[string, string, boolean]], [duplicatable=boolean], [exists=boolean], [floating=boolean], [height=boolean], [heightProperty=string], [horizontal=boolean], [initCallback=string], [initialHeight=int], [initialWidth=int], [label=string], [loadImmediately=boolean], [minimumWidth=boolean], [r=boolean], [requiredControl=string], [requiredPlugin=string], [resizeHeight=int], [resizeWidth=int], [restore=boolean], [retain=boolean], [stateString=string], [tabPosition=[string, boolean]], [tabToControl=[string, int]], [uiScript=script], [useTemplate=string], [visible=boolean], [visibleChangeCommand=script], [width=boolean], [widthProperty=string])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
workspaceControl は、取り消し可能、照会可能、および編集可能です。
レイアウトにウィンドウを配置するために使われるウィジェットを作成および管理します。これによりウィンドウのドッキングと積み重ねが可能になります。string | コントロールへのフル パス名です。 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
---|---|---|---|---|
checksPlugins(cp)
|
boolean
|
![]() ![]() |
||
|
||||
close(cl)
|
boolean
|
![]() |
||
|
||||
closeCommand(cc)
|
script
|
![]() ![]() |
||
|
||||
collapse(clp)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
defineTemplate(dt)
|
string
|
![]() |
||
|
||||
dockToControl(dtc)
|
[string, string]
|
![]() ![]() |
||
|
||||
dockToMainWindow(dtm)
|
[string, boolean]
|
![]() ![]() |
||
|
||||
dockToPanel(dtp)
|
[string, string, boolean]
|
![]() ![]() |
||
|
||||
duplicatable(dup)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
exists(ex)
|
boolean
|
![]() |
||
|
||||
floating(fl)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
height(h)
|
boolean
|
![]() |
||
|
||||
heightProperty(hp)
|
string
|
![]() ![]() ![]() |
||
|
||||
horizontal(hr)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
initCallback(ic)
|
string
|
![]() ![]() ![]() |
||
|
||||
initialHeight(ih)
|
int
|
![]() ![]() |
||
|
||||
initialWidth(iw)
|
int
|
![]() ![]() |
||
|
||||
label(l)
|
string
|
![]() ![]() ![]() |
||
|
||||
loadImmediately(li)
|
boolean
|
![]() ![]() |
||
|
||||
minimumWidth(mw)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
r(r)
|
boolean
|
![]() ![]() |
||
|
||||
requiredControl(rc)
|
string
|
![]() ![]() ![]() |
||
|
||||
requiredPlugin(rp)
|
string
|
![]() ![]() ![]() |
||
|
||||
resizeHeight(rsh)
|
int
|
![]() |
||
|
||||
resizeWidth(rsw)
|
int
|
![]() |
||
|
||||
restore(rs)
|
boolean
|
![]() ![]() |
||
|
||||
retain(rt)
|
boolean
|
![]() |
||
|
||||
stateString(ss)
|
string
|
![]() ![]() ![]() |
||
|
||||
tabPosition(tp)
|
[string, boolean]
|
![]() ![]() ![]() |
||
|
||||
tabToControl(ttc)
|
[string, int]
|
![]() ![]() |
||
|
||||
uiScript(ui)
|
script
|
![]() ![]() |
||
|
||||
useTemplate(ut)
|
string
|
![]() |
||
|
||||
visible(vis)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
visibleChangeCommand(vcc)
|
script
|
![]() ![]() |
||
|
||||
width(w)
|
boolean
|
![]() |
||
|
||||
widthProperty(wp)
|
string
|
![]() ![]() ![]() |
||
|
![]() |
![]() |
![]() |
![]() |
import maya.cmds as cmds def createCustomWorkspaceControlUI(*args): cmds.columnLayout() cmds.button() cmds.button() cmds.button() cmds.workspaceControl("myCustomWorkspaceControl", retain=False, floating=True, uiScript="createCustomWorkspaceControlUI()");