PDA

View Full Version : Zoom the right way


John Perkins
01-08-2006, 03:19 AM
This has been bugging me so I fixed it.

Have you ever shown someone how to use VTEdit and watched as they worried that something would be removed when they hit backspace? Never again...

When you zoom in with the "=" key, the display should center on the cursor instead of having to hit backspace after you zoom.

Put this in a text file named "CenterZoom.ToasterScript" in VT4\Skins\VideoEditor\MainWindow\Main\User Scripts and it will zoom like Premiere and other editors. It will probably work on other versions of VT too.

// Zoom in and Center
CreateShortCut ( "=", code(
if (GetActivePaneType()==1) // timeline only
{
Start = GetDisplayRangeStart()
End = GetDisplayRangeEnd()
Range = End - Start
if (Range > 0.1) {
Position = GetPosition()
Range = Range/2
Start = Position - Range/2
End = Start + Range
SetDisplayRange(Start, End)
}
}
), "CurrentPopup", 1000 // override the default key
"Timeline_Layout .*"
)

Jim_C
01-08-2006, 09:25 AM
Nice!! Thanks John!


Jim

Jim Capillo
01-08-2006, 11:25 AM
EXCELLENT !

Thanks John !! :thumbsup: