pymel.core.windows.cmdScrollFieldReporter¶
- cmdScrollFieldReporter(*args, **kwargs)¶
A script editor reporter control used to receive and display the history of processed commmands.
Flags:
Long Name / Short Name Argument Types Properties annotation / ann unicode backgroundColor / bgc float, float, float clear / clr bool
Clears the field. copySelection / cp bool
Copies the current selection from this field. cutSelection / ct bool
Cuts the current selection from this field. defineTemplate / dt unicode docTag / dtg unicode dragCallback / dgc callable dropCallback / dpc callable echoAllCommands / eac bool
Echo all commands. (Global parameter, affects all command reporters) enable / en bool enableBackground / ebg bool exists / ex bool filterSourceType / fst unicode
Filters the specified source type from showing in this command reporter. Currently supports either mel, python, or (default). Setting the filter to the empty string () will remove all filtering and show both meland pythonresults. fullPathName / fpn bool hasFocus / hf bool
Whether this control is currently in focus. height / h int highlightColor / hlc float, float, float isObscured / io bool lineNumbers / ln bool
Show line numbers (in Error/Warning messages). (Global parameter, affects all command reporters) manage / m bool noBackground / nbg bool numberOfPopupMenus / npm bool parent / p unicode pasteSelection / pst bool
Pastes text into this field at the current caret position. popupMenuArray / pma bool preventOverride / po bool receiveFocusCommand / rfc script
Command executed when the field receives focus. saveSelection / sv unicode
Prompts to save the current selection to a file. The default filename prompt will be prepended with the given string. saveSelectionToShelf / svs bool
Prompts to save the current selection to an item in the shelf. select / sl int, int
Selects text within a specified range. selectAll / sla bool
Selects all text. stackTrace / st bool
Show stack trace. (Global parameter, affects all command reporters) suppressErrors / se bool
Suppress errors. suppressInfo / si bool
Suppress info. suppressResults / sr bool
Suppress results. suppressStackTrace / sst bool
Suppress stack trace. suppressWarnings / sw bool
Suppress warnings. text / t unicode
Replaces the field text with the given string. textLength / tl bool
The number of characters in this text field. Flag can have multiple arguments, passed either as a tuple or a list. useTemplate / ut unicode visible / vis bool visibleChangeCommand / vcc callable width / w int Derived from mel command maya.cmds.cmdScrollFieldReporter
Example:
import pymel.core as pm # this will create a tiny window with a command history reporter pm.window() # Result: ui.Window('window1') # pm.columnLayout() # Result: ui.ColumnLayout('window1|columnLayout16') # pm.cmdScrollFieldReporter(width=200, height=100) # Result: ui.CmdScrollFieldReporter('window1|columnLayout16|cmdScrollFieldReporter2') # pm.showWindow()