Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

toolPropertyWindow([field=string], [helpButton=string], [icon=string], [inMainWindow=boolean], [location=string], [noviceMode=boolean], [resetButton=string], [selectCommand=string], [showCommand=string])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

toolPropertyWindow is undoable, queryable, and editable.

End users should only call this command as 1. a query (in the custom tool property sheet code) or 2. with no arguments to create the default tool property sheet. The more complex uses of it are internal.

Return value

None

In query mode, return type is based on queried flag.

Flags

field, helpButton, icon, inMainWindow, location, noviceMode, resetButton, selectCommand, showCommand
Long name (short name) Argument types Properties
location(loc) string queryedit
Sets/returns the location of the current tool property sheet, or an empty string if there is none.
icon(icn) string queryedit
Sets/returns the name of the static picture object (used to display the tool icon in the property sheet).
field(fld) string queryedit
Sets/returns the name of the text field used to store the tool name in the property sheet.
resetButton(rb) string queryedit
Sets/returns the name of the button used to restore the tool settings in the property sheet.
helpButton(hb) string queryedit
Sets/returns the name of the button used to show help on the tool in the property sheet.
showCommand(shw) string queryedit
Sets/returns the property sheet's display command.
selectCommand(sel) string queryedit
Sets/returns the property sheet's select command.
noviceMode(nm) boolean queryedit
Sets/returns the 'novice mode' flag.(unused at the moment)
inMainWindow(imw) boolean create
Specify true if you want the tool settings to appear in the main window rather than a separate window.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

cmds.toolPropertyWindow()
pictureObject = cmds.toolPropertyWindow(q=True, icon=True)