Global proc callbackName(string $dragControl, string $dropControl, string $msgs, int $x, int $y, int $type) Operation is released above the drop site. "dragControl" value is a string and the other values are integers (eg theĬallback string could be "print '%(dragControl)s %(x)d %(y)d %(modifiers)d'")Ĭommand executed when dragging in the field.Īdds a callback that is called when a drag and drop The format values are passed in aĭictionary with the keys "dragControl", "x", "y", "modifiers". In that case, the string will have the values substituted into it The other way to specify the callback in Python is to specify a string to beĮxecuted. The values of these arguments are the same as those for the MEL version above. In thatĬase, the Python callback should have the form:ĭef callbackName( dragControl, x, y, modifiers ): Recommended way is to pass a Python function object as the argument. In Python, it is similar, but there are two ways to specify the callback. Possible values are 0 = No modifiers, 1 = SHIFT, 2 = CTRL, $mods allows testing for the key modifiers CTRL and Controls that are application defined drag sources may The proc returns a string array that is transferred to the drop site.īy convention the first string in the array describes the user settable Global proc string callbackName(string $dragControl, int $x, int $y, int $mods) The MEL version of the callback is of the form: (e.g., -dt render/multiLister/createNode/material)Īdds a callback that is called when the middle mouse button Invocations of the command when templateName is set as theĪdd a documentation flag to the control. They will be used as default arguments in any subsequent Parsed and added to the command template specified in the argument. Puts the command in a mode where any other flags and arguments are Not invoked when the value changes via the -v/value flag. When setting backgroundColor, the background is automaticallyĮnabled, unless enableBackground is also specified with a falseĬommand executed when the field changes. To the red, green, and blue color components. Flags annotation, backgroundColor, changeCommand, defineTemplate, docTag, dragCallback, dragCommand, dropCallback, editable, enable, enableBackground, enableKeyboardFocus, enterCommand, exists, fullPathName, height, highlightColor, isObscured, manage, noBackground, numberOfPopupMenus, parent, popupMenuArray, precision, preventOverride, receiveFocusCommand, statusBarMessage, step, useTemplate, value, visible, visibleChangeCommand, width Long name (short name)Īnnotate the control with an extra string value. In query mode, return type is based on queried flag. The left and right mouseīuttons apply a factor of 0.1 and 10 to the step value. Specified with the -s/step flag, while dragging to the leftĭecreases the value by the same amount. With the middle mouse button increases the field value by the amount Dragging the invisible slider to the right TimeField is undoable, queryable, and editable.Ĭreate a field control that accepts only time values.įield and accessed by holding down the Ctrl modifier key while pressing Note: Strings representing object names and arguments must be separated by commas.
0 Comments
Leave a Reply. |