TimeControl



TimeControl is a web service hosted by ThingSpeak that executes any type of HTTP service call or sends Tweets at predetermined times or schedules. We now offer one-time commands and weekly recurring schedules for commands.

command (Python)MEL version
In categories: Windows, Controls

Control Play Time

KSP Time Control Mod. Contribute to ntwest/TimeControl development by creating an account on GitHub. TimeControl is without question the most flexible timesheet system on the market. In virtually every aspect of TimeControl's design, flexibility is a primary goal. TimeControl's hallmark is the ability to deliver a different aspect of a solution to different parts of the organization - in other words - being able to adapt to many conditions. TimeControl Speeds up or slows down Mindustry. Supports x0.25 x16. Some buttons can be pressed twice to alternate between different modes. The following tables describe the node properties. The column headed M indicates whether the property is mandatory (marked with an asterisk if you must enter a value when no default is defined); the column headed C indicates whether the property is configurable (you can change the value when you add the message flow to the BAR file to deploy it).

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

Synopsis

timeControl(string , [animCurveNames=boolean], [animLayerFilterOptions=string], [animLayerShowWeight=boolean], [annotation=string], [backgroundColor=[float, float, float]], [beginScrub=boolean], [currentFrameColor=[float, float, float, float]], [defineTemplate=string], [displaySound=boolean], [docTag=string], [dragCallback=script], [dropCallback=script], [enable=boolean], [enableBackground=boolean], [enableKeyboardFocus=boolean], [endScrub=boolean], [exists=boolean], [forceRedraw=boolean], [forceRefresh=boolean], [foregroundColor=[float, float, float]], [fullPathName=boolean], [globalTime=boolean], [greasePencilSequenceNames=boolean], [height=int], [highlightColor=[float, float, float]], [isObscured=boolean], [mainListConnection=string], [manage=boolean], [noBackground=boolean], [numberOfPopupMenus=boolean], [parent=string], [popupMenuArray=boolean], [pressCommand=script], [preventOverride=boolean], [range=boolean], [rangeArray=boolean], [rangeVisible=boolean], [releaseCommand=script], [repeatChunkSize=float], [repeatOnHold=boolean], [resample=boolean], [showGreaseFrames=string], [showKeys=string], [showKeysCombined=boolean], [snap=boolean], [sound=string], [statusBarMessage=string], [tickSize=int], [tickSpan=int], [useTemplate=string], [visible=boolean], [visibleChangeCommand=script], [waveform=string], [width=int])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

timeControl is undoable, queryable, and editable.

TimeControl This command creates a control that can be used forchanging current time, displaying/editing keys, anddisplaying/scrubbing sound.

Timecontrol Panel All Control Panel Items


Sfmta Time Control

NoteTimeControl: only one timeControl may be created. The one Maya createson startup can be accessed from the global string variable $gPlayBackSlider.Also, it is not a good idea to delete it.

Time Controller

Return value

stringName of created or edited control
TimeControlTimeControlTimeControl

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

Flags

animCurveNames, animLayerFilterOptions, animLayerShowWeight, annotation, backgroundColor, beginScrub, currentFrameColor, defineTemplate, displaySound, docTag, dragCallback, dropCallback, enable, enableBackground, enableKeyboardFocus, endScrub, exists, forceRedraw, forceRefresh, foregroundColor, fullPathName, globalTime, greasePencilSequenceNames, height, highlightColor, isObscured, mainListConnection, manage, noBackground, numberOfPopupMenus, parent, popupMenuArray, pressCommand, preventOverride, range, rangeArray, rangeVisible, releaseCommand, repeatChunkSize, repeatOnHold, resample, showGreaseFrames, showKeys, showKeysCombined, snap, sound, statusBarMessage, tickSize, tickSpan, useTemplate, visible, visibleChangeCommand, waveform, width
Long name (short name)Argument typesProperties
animCurveNames(acn)boolean
When 'showKeys' is not 'none', querying this flag willreturn the names of all the animCurves for which keyframeticks are being displayed. Query returns string[].
animLayerFilterOptions(alf)string
Specifies whether a filter is to be applied when displaying animation layers.If so, the options can be 'allAffecting' (no filter), 'active' (only the activelayers on the object will be displayed) and 'animLayerEditor' (the settings willbe taken from the animation layer editor).
animLayerShowWeight(asw)boolean
Specifies or queries whether weights are to be shown when displaying animation layers.
annotation(ann)string
Annotate the control with an extra string value.
backgroundColor(bgc)[float, float, float]
The background color of the control. The arguments correspondto the red, green, and blue color components. Each component rangesin value from 0.0 to 1.0.
When setting backgroundColor, the background is automaticallyenabled, unless enableBackground is also specified with a falsevalue.
beginScrub(bs)boolean
Set this widget up for sound scrubbing.Subsequent changes to current time will resultin 'sound scrubbing' behavior, until the'-endScrub' command is issued for this widget.
currentFrameColor(cfc)[float, float, float, float]
This flag is used to specify the rgba color of thecurrent frame overlay rectangle in the timeControl.
defineTemplate(dt)string
Puts the command in a mode where any other flags and arguments areparsed and added to the command template specified in the argument.They will be used as default arguments in any subsequentinvocations of the command when templateName is set as thecurrent template.
displaySound(ds)boolean
Turn sound display off. Query returns int.
docTag(dtg)string
Add a documentation flag to the control. The documentation flaghas a directory structure.(e.g., -dt render/multiLister/createNode/material)
dragCallback(dgc)script
Adds a callback that is called when the middle mouse buttonis pressed. The MEL version of the callback is of the form:

global proc string[] callbackName(string $dragControl, int $x, int $y, int $mods)

The proc returns a string array that is transferred to the drop site.By convention the first string in the array describes the user settablemessage type. Controls that are application defined drag sources mayignore the callback. $mods allows testing for the key modifiers CTRL andSHIFT. Possible values are 0 No modifiers, 1 SHIFT, 2 CTRL,3 CTRL + SHIFT.

In Python, it is similar, but there are two ways to specify the callback. Therecommended way is to pass a Python function object as the argument. In thatcase, the Python callback should have the form:

def callbackName( dragControl, x, y, modifiers ):

The values of these arguments are the same as those for the MEL version above.

The other way to specify the callback in Python is to specify a string to beexecuted. In that case, the string will have the values substituted into itvia the standard Python format operator. The format values are passed in adictionary with the keys 'dragControl', 'x', 'y', 'modifiers'. The'dragControl' value is a string and the other values are integers (eg thecallback string could be 'print '%(dragControl)s %(x)d %(y)d %(modifiers)d')

dropCallback(dpc)script
Adds a callback that is called when a drag and dropoperation is released above the drop site. The MEL version of the callback isof the form:

global proc callbackName(string $dragControl, string $dropControl, string $msgs[], int $x, int $y, int $type)

The proc receives a string array that is transferred from the drag source.The first string in the msgs array describes the user defined message type.Controls that are application defined drop sites may ignore thecallback. $type can have values of 1 Move, 2 Copy, 3 Link.

In Python, it is similar, but there are two ways to specify the callback. Therecommended way is to pass a Python function object as the argument. In thatcase, the Python callback should have the form:

def pythonDropTest( dragControl, dropControl, messages, x, y, dragType ):

The values of these arguments are the same as those for the MEL version above.

The other way to specify the callback in Python is to specify a string to beexecuted. In that case, the string will have the values substituted into itvia the standard Python format operator. The format values are passed in adictionary with the keys 'dragControl', 'dropControl', 'messages', 'x', 'y','type'. The 'dragControl' value is a string and the other values are integers(eg the callback string could be'print '%(dragControl)s %(dropControl)s %(messages)r %(x)d %(y)d %(type)d')

enable(en)boolean
The enable state of the control. By default, this flag isset to true and the control is enabled. Specify false and the controlwill appear dimmed or greyed-out indicating it is disabled.
enableBackground(ebg)boolean
Enables the background color of the control.
enableKeyboardFocus(ekf)boolean
If enabled, the user can navigate to the control with the tab key and select values with the keyboard. If not, the user can only use the mouse.This flag would typically be used to turn off keyboard focus support from controls that get it by default, like Edit and List controls
endScrub(es)boolean
End sound scubbing for this widget. This stopssound scrubbing behavior and should be issuedbefore any subsequent '-beginScrub' flags
exists(ex)boolean
Returns whether thespecified object exists or not. Other flags are ignored.
forceRedraw(fd)boolean
Force a redraw of the time control UI. Similiar to forceRefresh butdoes not rebuild key information.
forceRefresh(fr)boolean
Force a refresh of the time control UI.
foregroundColor(fgc)[float, float, float]
This flag is used to specify the rgb color of thevertical lines and numeric text in the timeControl.
fullPathName(fpn)boolean
Return the full path name of the widget, which includes all the parents.
globalTime(gt)boolean
'true' means this widget controls and displays the global,dependency graph time. 'false' means time changes heredo NOT affect the dependency graph. Query returns int.
greasePencilSequenceNames(gn)boolean
Returns the names of all grease pencil sequences that haveframes being displayed in the time line. Query returns string[].
height(h)int
The height of the control. The control will attempt tobe this size if it is not overruled by parent layout conditions.
highlightColor(hlc)[float, float, float]
The highlight color of the control. The arguments correspondto the red, green, and blue color components. Each component rangesin value from 0.0 to 1.0.
isObscured(io)boolean
Return whether the control can actually be seen by the user.The control will be obscured if its state is invisible, if it isblocked (entirely or partially) by some other control, if it or aparent layout is unmanaged, or if the control's window isinvisible or iconified.
mainListConnection(mlc)string
Specifies the name of a selectionConnection object that thetime slider will use as its source of content. The time slider willonly display keys for items contained in the selectionConnection object.
manage(m)boolean
Manage state of the control. An unmanaged control isnot visible, nor does it take up any screen real estate. Allcontrols are created managed by default.
noBackground(nbg)boolean
Clear/reset the control's background.Passing true means the background should not be drawn at all, false means the background should be drawn. The state of this flag is inherited by children of this control.
numberOfPopupMenus(npm)boolean
Return the number of popup menus attached to this control.
parent(p)string
The parent layout for this control.
popupMenuArray(pma)boolean
Return the names of all the popup menus attached to thiscontrol.
pressCommand(pc)script
script to run on mouse-down in this control.
preventOverride(po)boolean
If true, this flag prevents overriding the control'sattribute via the control's right mouse button menu.
range(rng)boolean
Returns string representing the currently highlightedrange visible on the time slider. A range from 10 to 20would be returned as '10:20'. When there's no rangevisible on the time slider, the query returns a rangespanning the current time: for example, '10:11'. Thesevalues are in the current time unit.
rangeArray(ra)boolean
Returns a float array representing the currently highlightedrange visible on the time slider. A range from 10 to 20would be returned as { 10.0, 20.0 }. When there's no rangevisible on the time slider, the query returns values spanningthe current time: { 10.0, 11.0 }. These values are in the current time unit.
rangeVisible(rv)boolean
Returns true if a currently highlighted range is visibleon the time slider, false if no.
releaseCommand(rc)script
script to run on mouse-up in this control.
repeatChunkSize(rcs)float
How much sound (in the current time unit) is repeatedwhen -repeatOnHold is true. Default is 1.0.
repeatOnHold(roh)boolean
Repeat sound during mouse-down events
resample(r)boolean
Resample the sound display to fit the widget
showGreaseFrames(sg)string
'active' will show grease frames for the active camera. 'none'shows no grease frames. 'all' will show all grease frames.Default 'active'. Query returns string.
showKeys(sk)string
'active' will show tick marks for keyframes on all activeobjects. 'none' shows no tick marks. Any other name istaken as the name of a channel box whose selected attributeswill display tick marks. Default 'active'. Query returns string.
showKeysCombined(skc)boolean
This flag can be used in conjunction with the showKeys flag toenable a combination of 'active' + 'channel box' behavior.Specifically, if channel box attributes are selected, tick marks willbe shown for those attributes. If no channel box attributes areselected, tick marks will be shown for keyframes on all active objects.
snap(sn)boolean
'true' means this widget is constrained to havingvalues that are integers representing the current time unit..'false' means the current time indicator is 'free floating'and not constrained.
sound(s)string
Name of audio depend node whose data should display in thesound-display widget. Query returns string.
statusBarMessage(sbm)string
Extra string to display in the status bar when the mouse is over the control.
tickSize(ts)int
Specifies the width of keyframe ticks drawn in the time slider.The value will be clamped to the range [1, 63].
tickSpan(tsp)int
Specifies the interval between keyframe ticks in the timeControl. For example,a value of 10, will place ticks at 0, 10, 20, etc.
useTemplate(ut)string
Forces the command to use a command template other thanthe current one.
visible(vis)boolean
The visible state of the control. A control is createdvisible by default. Note that a control's actual appearance isalso dependent on the visible state of its parent layout(s).
visibleChangeCommand(vcc)script
Command that gets executed when visible state of the control changes.
waveform(wf)string
Determines what part of the sound waveform to display,when -displaySound is 'true'. Valid values are 'top', 'bottom',and 'both'. Default is 'top'. Query returns string.
width(w)int
The width of the control. The control will attempt tobe this size if it is not overruled by parent layout conditions.
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