drinkrest.blogg.se

Unity timecontrol
Unity timecontrol











unity timecontrol

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.

unity timecontrol

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 Query returns int.Īdd a documentation flag to the control. Invocations of the command when templateName is set as the 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 This flag is used to specify the rgba color of theĬurrent frame overlay rectangle in the timeControl. "-endScrub" command is issued for this widget. Subsequent changes to current time will result When setting backgroundColor, the background is automaticallyĮnabled, unless enableBackground is also specified with a false To the red, green, and blue color components. Specifies or queries whether weights are to be shown when displaying animation layers.Īnnotate the control with an extra string value. Layers on the object will be displayed) and "animLayerEditor" (the settings willīe taken from the animation layer editor). If so, the options can be "allAffecting" (no filter), "active" (only the active Specifies whether a filter is to be applied when displaying animation layers. Return the names of all the animCurves for which keyframe When "showKeys" is not "none", querying this flag will Flags animCurveNames, animLayerFilterOptions, animLayerShowWeight, annotation, backgroundColor, beginScrub, currentFrameColor, defineTemplate, displaySound, docTag, dragCallback, dropCallback, enable, enableBackground, enableKeyboardFocus, endScrub, exists, forceRedraw, forceRefresh, foregroundColor, fullPathName, globalTime, height, highlightColor, isObscured, mainListConnection, manage, noBackground, numberOfPopupMenus, parent, popupMenuArray, pressCommand, preventOverride, range, rangeArray, rangeVisible, releaseCommand, repeatChunkSize, repeatOnHold, resample, showKeys, showKeysCombined, snap, sound, statusBarMessage, tickSize, tickSpan, useTemplate, visible, visibleChangeCommand, waveform, width Long name (short name) In query mode, return type is based on queried flag. On startup can be accessed from the global string variable $gPlayBackSlider.Īlso, it is not a good idea to delete it. Note: only one timeControl may be created. This command creates a control that can be used forĬhanging current time, displaying/editing keys, and TimeControl is undoable, queryable, and editable. Note: Strings representing object names and arguments must be separated by commas.













Unity timecontrol