Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro scripts

  • scripts

    Posted by Brian Scott on October 15, 2007 at 12:06 pm

    I’m trying to get a handle on how scripts have changed. I have a client that does rough-cuts in Vegas and sends them to me. He puts the timecode filter on a lot of the clips, and now the remove timecode script doesn’t seem to work. It doesn’t seem like they have changed the name of the filter. Is there more code that needs to be added and or changed to make these scripts run in Vegas 8? Many of my other scripts still run, so I’m at a loss as my scripting abilities are limited.

    Brian Scott
    President
    Image Design Productions, Inc.

    Brian Scott replied 18 years, 10 months ago 2 Members · 4 Replies
  • 4 Replies
  • Edward Troxel

    October 15, 2007 at 3:25 pm

    With this limited info, it’s hard to say what might be going on. I don’t know what script you’re using. I don’t know what version of Vegas you’re using. I don’t know where the timecode effect was applied. Are you both using the same language version of Vegas and is that the “English” version? The effect names DID change in the other language versions which caused me some issues.

    Many more details would be needed to properly answer this question.

    Edward Troxel
    JETDV Scripts

  • Brian Scott

    October 15, 2007 at 4:52 pm

    Thanks for the response!
    I’m using the script that came with Vegas 6 or 7 – 7 I think:

    import System.Windows.Forms;
    import Sony.Vegas;

    // This is the full name of the plug-in associated with the effects
    // you want to remove.
    var plugInName = “Sony Timecode”;

    try {
    var mediaEnum = new Enumerator(Vegas.Project.MediaPool);
    while (!mediaEnum.atEnd()) {
    var media = mediaEnum.item();
    var effectsEnum = new Enumerator(media.Effects);
    while (!effectsEnum.atEnd()) {
    var effect = effectsEnum.item();
    if (plugInName == effect.PlugIn.Name) {
    media.Effects.Remove(effect);
    }
    effectsEnum.moveNext();
    }
    mediaEnum.moveNext();
    }
    } catch (e) {
    MessageBox.Show(e);

    The filter was applied to individual clips on the timeline.
    We are both using the English version. The project was started by the client in V7 – I began working on it in V8.

    Brian Scott
    President
    Image Design Productions, Inc.

  • Edward Troxel

    October 15, 2007 at 5:03 pm

    That script removes the Timecode effect from everything in the “PROJECT MEDIA” – it doesn’t touch the timeline. There’s a corresponding script that adds the timecode effect to everything in Project Media as well.

    If it needs to affect events on the timeline, it will have to be rewritten to do so. I know Excalibur can remove specific effects from events on the timeline. I’m sure Ultimate S probably can as well.

    Edward Troxel
    JETDV Scripts

  • Brian Scott

    October 15, 2007 at 5:46 pm

    Glad you reminded me! I always forget all the other stuff that Excaliber does.

    Brian Scott
    President
    Image Design Productions, Inc.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy