Yes, here’s a script that accomplishes this by starting a timer label once you activate the widget to record.
var
timelabel, record : widget
R :Ramp
On WidgetValueChanged(newValue : double) from record // when the record widget changes
If newValue > 0 // if you're starting the recording
then TriggerOneShotRamp(R, 9999999, 1) //start the timer
Else
StopOneShotRamp(R)// stop the timer
End
End
On GeneratorRunning(timeX : integer, timeY : double) from R
timelabel.SetWidgetLabel (FormatTime(timeY*10000000,"%M:%S")) // this sets the timer label
End
Here’s a small gig file demonstrating this.
You should be able to adapt it for your purposes.
RecordTimer.gig (41.0 KB)