Is there a hot key to flip a clip vertical? I wrote a script a long time ago which rotates any selected clip by an arbitrary angle. If you set the angle to 90 degrees, it flips it vertically.
Copy this code to Notebook (but don't include "code"), and save it with the extension ".js" (without the quotes). Put this in the Vegas script folder, and then assign it to a keyboard shortcut. Since I set the rotation angle to 90 degrees, this will let you rotate any and all selected clips with the press of one key.
Note that if no clips are selected, then ALL clips will be rotated.
John
// Vertically flip all selected video events on first selected track.
// No selection = ALL events
// Copyright November 19, 2014, John H. Meyer
import System.Windows.Forms;
import Sony.Vegas;
// Change the following line to get different roations
var RotationDegrees = -90;
var zero : int = 0;
var cSelected = GetSelectionCount (MediaType.Video);
var cTracks = Vegas.Project.Tracks.Count;
var ii;
var Rotation = (RotationDegrees) * (Math.PI)/180;
for (ii = zero; ii < cTracks; ii ++)
{
var track = Vegas.Project.Tracks[ii];
if (! track.IsVideo())
{
continue;
}
var eventEnum : Enumerator = new Enumerator(track.Events);
while ( ! eventEnum.atEnd() )
{
var trackEvent : TrackEvent = eventEnum.item();
if ( !cSelected || trackEvent.Selected )
{
var mediaStream = GetActiveMediaStream (trackEvent);
if (mediaStream)
{
var videoStream = VideoStream (mediaStream);
var MediaAspect = videoStream.PixelAspectRatio
var NewWidth = videoStream.Height / MediaAspect
var NewHeight = videoStream.Width * MediaAspect
var videoEvent = VideoEvent(eventEnum.item());
var keyframes = videoEvent.VideoMotion.Keyframes;
var cKeyframes = keyframes.Count;
var jj;
function RotateEvent (keyframe : VideoMotionKeyframe, Rotation, MediaAspect, NewWidth, NewHeight)
{
var rotation = keyframe.Rotation;
var myKeyframe = new VideoMotionBounds(keyframe.TopLeft, keyframe.TopRight, keyframe.BottomRight, keyframe.BottomLeft);
var bounds = new VideoMotionBounds(keyframe.TopLeft, keyframe.TopRight, keyframe.BottomRight, keyframe.BottomLeft);
Once you've turned the JM Script into a click-able option, configure a Keyboard Shortcut through:
Options >> Customise Keyboard
And assign the JM Script to a "Hot Key". That's what you were wanting - yes?
However, I do like PEA-ing - that's Paste Event Attributes. It's a method of applying an Event's "look" without the need to remember KB shortcuts or "HotKeys". Though PEAing does sweep or wash all before it. So, PEA for Flip and then add your FX-ing.