CG Live playback request

Rendesigns

New member
It occured to me that I spend an awful lot of thought process while using the DSK during live events. It would definately help me if there was a "set it and forget it" option for it just under the DSK fader indicator.

What I was thinking of is a timer that you can set that would make your overlays always be up for the exact same amount of time. It would just be nifty if you could set, oh say, - a 7 sec timer hit the "a" or "f" button and forget it. and also have an on off button for all those full screen titles that you made with your spare time. Any other thoughts on this one?
 
It is spossible to set a timer for DSK.
The TScript can not understand the contents of DSK is a overlay or fulll screen titles. So you can use A and F key for full screen and some otherr key conbinations for timed overlay.

Here is the ToasterScript I wrote for this. Please save it as "C:\Program Files\NewTek\VT5\Skins\TabbedSwitcher\User Scripts\TimedDSK.ToasterScript"
Or you can use the attached file here, View attachment TimedDSK.ToasterScript.txt, delete the .txt extension name, save it to the dirctory as above.


The default time length is 7 sec. You can change it at the begining of the script.

The key conbinations are:
Alt-F DSK fade in / Timed DSK fade out
Alt-A DSK fade in with DVE Auto / Timed DSK fade out
Ctrl-A DSK fade in with DVE Auto / Timed DSK fade out with DVE Auto
Ctrl-F Stop the timer. If DSK is still on, fade DSK off.

Code:
//
// Timed DSK by Chen Pan, AnimLab @2009
// http://www.animlab.com
// [email protected]
// All rights reserved.
//

//
// Change time length here
//
min = 0
sec = 7

//
// Script start here
// do not touch......
//
KbdPriority = 100	
KbdPriorityHigh = 1000	
sw=0
flag=0
tm = ((min*60)+sec)*1000
target = GetTime()

TimedDSK =CreateControl(53 53 53 "SkinControl_SubControl_Layers")
TimedDSK:{AddCallback("Timer", 
	code(
//	   now=GetTime()
	   if( (GetTime() > target) & (flag==1) ){
	      if(DSKGet())
	      {
		 DSKFade()
	      	 if(sw==1) Auto()
	      }
	      flag=0
	   }
	)
}

CreateShortCut	("Ctrl a", code(
		   TimedDSK:StopTimer()
		   sw=1
		   DSKFade()
		   Auto()
		   flag=1
		   target = GetTime() + tm
		   TimedDSK:StartTimer(1000)
		), "OrderedFocus", KbdPriority)	// DSKFade

CreateShortCut	("Alt a", code(
		   TimedDSK:StopTimer()
		   sw=0
		   DSKFade()
		   Auto()
		   flag=1
		   target = GetTime() + tm
		   TimedDSK:StartTimer(1000)
		), "OrderedFocus", KbdPriority)	// DSKFade

CreateShortCut	("Alt f", code(
		   TimedDSK:StopTimer()
		   sw=0
		   DSKFade()
		   flag=1
		   target = GetTime() + tm
		   TimedDSK:StartTimer(1000)
		), "OrderedFocus", KbdPriority)	// DSKFade

CreateShortCut	("Ctrl f", code(
		   TimedDSK:StopTimer()
		   if(DSKGet())	DSKFade()
		   flag=0
		   sw=0
		), "OrderedFocus", KbdPriority)


CreateShortCut	("CapsLockOn Ctrl a", code(
		   TimedDSK:StopTimer()
		   sw=1
		   DSKFade()
		   Auto()
		   flag=1
		   target = GetTime() + tm
		   TimedDSK:StartTimer(1000)
		), "OrderedFocus", KbdPriorityHigh)	// DSKFade

CreateShortCut	("CapsLockOn Alt a", code(
		   TimedDSK:StopTimer()
		   sw=0
		   DSKFade()
		   Auto()
		   flag=1
		   target = GetTime() + tm
		   TimedDSK:StartTimer(1000)
		), "OrderedFocus", KbdPriorityHigh)	// DSKFade

CreateShortCut	("CapsLockOn Alt f", code(
		   TimedDSK:StopTimer()
		   sw=0
		   DSKFade()
		   flag=1
		   target = GetTime() + tm
		   TimedDSK:StartTimer(1000)
		), "OrderedFocus", KbdPriorityHigh)	// DSKFade

CreateShortCut	("CapsLockOn Ctrl f", code(
		   TimedDSK:StopTimer()
		   if(DSKGet())	DSKFade()
		   flag=0
		   sw=0
		), "OrderedFocus", KbdPriorityHigh)

Enjoy it. The timer in the script is set to check the status every second (1000msec). So there are averaged half second timed error for the DSK length. Shorten the timer might help the precision but add some overhead to switcher.
 

Rendesigns

New member
thx

Wow, a community where you can ask questions and get answers:thumbsup:
This works beautifully and lets me concentrate on other things. thank you.

p.s. do I owe you a steak dinner or something??
 

Jim_C

We've got it simple.
Wow, a community where you can ask questions and get answers:thumbsup:
This works beautifully and lets me concentrate on other things. thank you.

p.s. do I owe you a steak dinner or something??

If so, I owe Chen a side of beef... he wrote a freebie script a couple years ago that saves me literally a dozen or so hours of work per week on certain projects.

That guy is always here writing stuff for folks. He does sell a few handy items on his site if you wanna take a look.
 
Steak, beef or Taxas BBQ will be fine for me but you have to ship them oversea or send me a flight ticket. Just joking.....
 

Quiet1onTheSet

New member
It is possible to set a timer for DSK.
The TScript can not understand the contents of DSK is a overlay or full screen titles. So you can use A and F key for full screen and some other key conbinations for timed overlay.

Here is the ToasterScript I wrote for this...

Utterly amazing guy, you are, Chen.
 
Top Bottom