PDA

View Full Version : VT3 Custom User Script to Enable Smooth ShuttlePro2 Shuttling


bradl
09-04-2003, 10:15 AM
I just installed my new ShuttlePro2 and configured it the way I want for now. The shuttle commands available in VT3 do not work at all (hitting "l" repeatedly) with the device. Sending out frame advances seems to be the only other way to ramp up the speed (7 levels of speed on the ShuttlePro).

The problem with the frame advance is it is choppy, audio is stuttered, has latency issues and can only process a limited amount of advances until it is maxed out.

What is needed is distinct speeds setting mapped to keys. That is exactly what I did and it works marvelously.

Here are the details:

The following Script will create custom Hotkeys for Shift F1 - F11 and Cntl F1 - F11. You can then use these shuttle "speeds" to map to your ShuttlePro. You may notice the Cntrl F1 is a little different. I use that for my "PLAY"command button because when shuttling I like to have FWD, REV and PLAY at my fingertips, not FWD, REV and STOP. The new PLAY command will still toggle from play to stop, except if shuttling it will go to Play first. The script now gives you the ability to use a absolute STOP and absolute PLAY (and even PLAY REVERSE) if you want to go that route as well.

Create a ToasterScript from the following and place it in "C:\VT3\Skins\VideoEditor\MainWindow\Main\User Scripts", naming it something like "CustomHotkeys.ToasterScript". Sorry but the forum removes tabs and extra spaces below, but it should work fine- if not look at examples in "C:\VT3\Skins\VideoEditor\MainWindow\Main\Common Support\Kbd.ToasterScript" for guidance. Obviously you can customize this script easily for your own needs...

// Custom Speed Hotkeys ToasterScript
// Created by Brad Loflin on 09-04-03

CreateShortCut ("Shift F1", code(
SetSpeed(0)
AudioOn()
}, "OrderedFocus", KbdPriority) // Hard Stop

CreateShortCut ("Shift F2", code(
SetSpeed(0.3)
AudioOn()
}, "OrderedFocus", KbdPriority) // .3 Forward

CreateShortCut ("Shift F3", code(
SetSpeed(0.5)
AudioOn()
}, "OrderedFocus", KbdPriority) // .5 Forward

CreateShortCut ("Shift F4", code(
SetSpeed(0.8)
AudioOn()
}, "OrderedFocus", KbdPriority) // .8 Forward

CreateShortCut ("Shift F5", code(
SetSpeed(1)
AudioOn()
}, "OrderedFocus", KbdPriority) // 1 Forward

CreateShortCut ("Shift F6", code(
SetSpeed(2)
AudioOn()
}, "OrderedFocus", KbdPriority) // 2 Forward

CreateShortCut ("Shift F7", code(
SetSpeed(4)
AudioOn()
}, "OrderedFocus", KbdPriority) // 4 Forward

CreateShortCut ("Shift F8", code(
SetSpeed(8)
AudioOn()
}, "OrderedFocus", KbdPriority) // 8 Forward

CreateShortCut ("Shift F9", code(
SetSpeed(16)
AudioOn()
}, "OrderedFocus", KbdPriority) // 16 Forward

CreateShortCut ("Shift F10", code(
SetSpeed(32)
AudioOn()
}, "OrderedFocus", KbdPriority) // 32 Forward

CreateShortCut ("Shift F11", code(
SetSpeed(64)
AudioOn()
}, "OrderedFocus", KbdPriority) // 64 Forward

CreateShortCut ("Ctrl F1", code(
if (GetSpeed()!=1) {
SetSpeed(1)
AudioOn()
}
else
{
SetSpeed(0)
AudioOff()
}
), "OrderedFocus", KbdPriority) // Stop if playing, otherwise play

CreateShortCut ("Ctrl F2", code(
SetSpeed(-0.3)
AudioOn()
}, "OrderedFocus", KbdPriority) // -0.3 Rewind

CreateShortCut ("Ctrl F3", code(
SetSpeed(-0.5)
AudioOn()
}, "OrderedFocus", KbdPriority) // -0.5 Rewind

CreateShortCut ("Ctrl F4", code(
SetSpeed(-0.8)
AudioOn()
}, "OrderedFocus", KbdPriority) // -0.8 Rewind

CreateShortCut ("Ctrl F5", code(
SetSpeed(-1)
AudioOn()
}, "OrderedFocus", KbdPriority) // -1 Rewind

CreateShortCut ("Ctrl F6", code(
SetSpeed(-2)
AudioOn()
}, "OrderedFocus", KbdPriority) // -2 Rewind


CreateShortCut ("Ctrl F7", code(
SetSpeed(-4)
AudioOn()
}, "OrderedFocus", KbdPriority) // -4 Rewind


CreateShortCut ("Ctrl F8", code(
SetSpeed(-8)
AudioOn()
}, "OrderedFocus", KbdPriority) // -8 Rewind

CreateShortCut ("Ctrl F9", code(
SetSpeed(-16)
AudioOn()
}, "OrderedFocus", KbdPriority) // -16 Rewind

CreateShortCut ("Ctrl F10", code(
SetSpeed(-32)
AudioOn()
}, "OrderedFocus", KbdPriority) // -32 Rewind

CreateShortCut ("Ctrl F11", code(
SetSpeed(-64)
AudioOn()
}, "OrderedFocus", KbdPriority) // -64 Rewind

bradl
09-04-2003, 10:42 AM
If you use this script or have comments, please post back here to let me know. I have a few other script items I am working on.

Jim Capillo
11-13-2003, 05:37 PM
Brad,

Tried to get this running, but it does nothing but force the focus from VTEdit to the Switcher (small one opened).

Any ideas?

bradl
11-13-2003, 09:39 PM
Jim,

It has been a couple of months since I posted that. I will look into it. Unfortunately, I am off till Sunday afternoon or Monday...

The command syntax is lifted right out of the "C:\VT3\Skins\VideoEditor\MainWindow\Main\Common Support\Kbd.ToasterScript". Adding your own to User Scripts directory makes them load in addition to the regular ones. All I can say at this point is double check your commands by comparing to a system one and also double check the directory location. You must reboot VT after each change.

Maybe start with something simple like one command mapped to a single key. Try to get that working then add the others. Then add them to the Shuttle as desired...

Jim Capillo
11-13-2003, 10:40 PM
Okie dokey....

I'll give it a try.

Thanks!