Gets the time value of the time box user control specified by userControlID
.
The return value is in frames, regardless of the time display style setting in the Preferences.
User Window
getTimeBoxTime userControlID |
Name | Type | Required | Comments |
---|---|---|---|
userControlId | int | yes | ID of user control to operate on. |
None
integer
// Get the time value of a Time Box User Control int $windowId; int $controlId; int $time; // First create a User Window to place the Controls on $windowId = `createWindow "MyWindow"`; // Create the User Control on the Window. $controlId = `createTimeBox $windowId`; // Set the time to some arbitrary frame setTimeBoxTime $controlId 125; // Get the time we just set $time = `getTimeBoxTime $controlId`; print $time; |