Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro How to select Video Evecnt Effect through Script?

  • How to select Video Evecnt Effect through Script?

    Posted by Chandan Nataraj on September 12, 2011 at 6:38 am

    Hi All,

    Is there a way to select ‘Video Event FX’/’Track Event FX’ through scripting? I can select a track or video event using Track.Selected TrackEvent.Selected property respectively. But I could not see any such property in the Effect class.

    Any help is highly appreciated.

    Thanks,
    Chandan

    Chandan Nataraj replied 14 years, 10 months ago 4 Members · 10 Replies
  • 10 Replies
  • John Rofrano

    September 12, 2011 at 2:45 pm

    [Chandan Nataraj] “Is there a way to select ‘Video Event FX’/’Track Event FX’ through scripting? I can select a track or video event using Track.Selected TrackEvent.Selected property respectively. But I could not see any such property in the Effect class.”

    There is no concept of “selecting” an FX in Vegas. What are you trying to do?

    ~jr

    http://www.johnrofrano.com
    http://www.vasst.com

  • Chandan Nataraj

    September 13, 2011 at 4:23 am

    Hi,

    I am trying to get the event information (length, start time, end time etc) from my DirectX plug-in. I am using a script to get this information as DirectX plug-in API does not provide this option.

    My plug-in runs the script on a button click event. The script has to find the ‘Event’ that contains my plug-in (the instance which launched the script). Then I can extract the information from that Event object.

    When I mentioned ‘selected FX’, I was pointing to the effect which is shown in ‘Video Event Fx’ window.

    I hope this makes things bit clear.

    Thanks,
    Chandan

  • Graham Bernard

    September 13, 2011 at 5:50 am

    Chandan, is your ultimate goal to re-apply and repeat an FX chain to other Evens? If so, Vegas already has this feature and I use it all the time when I need to do this.

    Grazie

  • Chandan Nataraj

    September 13, 2011 at 6:28 am

    Hi Grazie,

    My plug-in will pop-up a modal dialog with complex UI providing different options to edit the video. It almost covers the entire screen. When user is using my dialog he will not be able to see preview in Vegas. Hence my dialog should provide real time preview and timeline controls (play, pause, stop, seek etc).

    Cheers,
    Chandan

  • John Rofrano

    September 13, 2011 at 10:52 am

    [Chandan Nataraj] “My plug-in runs the script on a button click event. The script has to find the ‘Event’ that contains my plug-in (the instance which launched the script). Then I can extract the information from that Event object.”

    This is not possible at the instance level. What you may have to do is limit the use of your plug-in to once per event. Then you can find that one.

    ~jr

    http://www.johnrofrano.com
    http://www.vasst.com

  • Chandan Nataraj

    September 13, 2011 at 11:30 am

    Hi John,

    I didn’t get the point. Assuming that I limit the number of plugins per event to one, I can still have multiple events that contain my plugin right? So how do I find out which Event the plugin belongs to?

    Chandan

  • John Rofrano

    September 13, 2011 at 11:13 pm

    What I see most plugins do is require that you select the event before pressing the button to run the script. Then just look for the selected event and interate over the events Effects collection until you find your plugin. Mercalli does this and customer are use to it by now.

    ~jr

    http://www.johnrofrano.com
    http://www.vasst.com

  • Chandan Nataraj

    September 14, 2011 at 4:03 am

    Thanks John. That seems the only option.

    Chandan

  • Edward Troxel

    September 14, 2011 at 3:24 pm

    It *CAN* be done because NewBlue is doing it with their DirectX Stabilizer Pro plugin. The desired event does not have to be selected in order to click on the “Analyze” button. However, it’s not an easy task.

    Why not just do an OpenFX plugin instead? You can get much more information about the event as an OpenFX plugin.

    Edward Troxel
    JETDV Scripts

  • Chandan Nataraj

    September 15, 2011 at 10:27 am

    Thanks for the info on NewBlue plug-in. I’ll have a look. I can’t use OpenFX plugin as Vegas 9 does not support it.

    Chandan

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