DV Info Net

DV Info Net (https://www.dvinfo.net/forum/)
-   What Happens in Vegas... (https://www.dvinfo.net/forum/what-happens-vegas/)
-   -   Properties Script? (https://www.dvinfo.net/forum/what-happens-vegas/466514-properties-script.html)

Michael Tobias October 26th, 2009 05:48 PM

Properties Script?
 
Is there a script for Vegas 8 that will change the properties of all selected clips at once? Or am I stuck going into each individual clip and changing them one at a time? (I'm specifically interested in changing the PAR.)

Mike Kujbida October 26th, 2009 06:47 PM

This isn't a script but it's almost as fast.

NOTE: make sure this is the very first thing you do to any of your clips so that no unwanted FX get copied.

Set your Project Properties to the appropriate PAR.
Open up Pan/Crop on clip #1, right-click, select "Match Output Aspect" and exit.
Right-click clip #1 and select Copy.
Click & right-click clip #2 and select "Select Events to End".
Right-click clip #2 one last time and select "Paste Event Attributes" and you're done.
It took longer to type this than it does to do it :-)

edit: if you want a script for future use, check Edward Troxel's response in the Help to crop pictures on a slideshow thread as he gives you one.

Edward Troxel October 27th, 2009 06:42 AM

Here's an old "PixelAspect.js" file I found:

Code:

//PixelAspect.js
import Sony.Vegas;

for (var currentTrack : Track in Vegas.Project.Tracks) {
  if (currentTrack.IsVideo() == true) {
    for (var currentEvent : VideoEvent in currentTrack.Events) {
      if (currentEvent.Selected == true) {
        VideoStream(new Media(currentEvent.ActiveTake.MediaPath).Streams.GetItemByMediaType(currentEvent.MediaType, currentEvent.ActiveTake.StreamIndex)).PixelAspectRatio = 1.21;
      }
    }
  }
}


Michael Tobias October 27th, 2009 10:49 AM

Mike, that's usually what I would have done first the only problem is is that pan/crop only crops into the media to fill the PAR of the project. The footage I have is already in the incorrect PAR (it's some .MOD files from a JVC camera and they import with a .9 PAR and for it to look/be correct I need it to be 1.212 and dropped onto a widescreen timeline.) So what I need to do is to go into the media properties and change the PAR in there to 1.212. I thought copy/paste attributes would have worked for the media properties but it doesn't.

But thanks for what you were saying since that is what I wanted to do at first.

Ed, I'll set that script up and check to see if it works. Thanks you.


All times are GMT -6. The time now is 10:00 PM.

DV Info Net -- Real Names, Real People, Real Info!
1998-2024 The Digital Video Information Network