Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro Programmatically Set TrackEvent Selected Property

  • Programmatically Set TrackEvent Selected Property

    Posted by Gary James on May 2, 2011 at 2:36 pm

    In my command extension DLL I’d like to be able to Set/Clear the TrackEvent Selected property. But when I try to set it either True or False Vegas throws a COM error Exception.

    I’ve seen other command extension DLL’s that allow this. The property is both Read/Write, so I’m not sure why Vegas wont let me set the property. Any ideas?

    Thanks.

    Gary James

    Gary James replied 15 years ago 2 Members · 2 Replies
  • 2 Replies
  • Aleksey Tarasov

    May 2, 2011 at 4:15 pm

    wrap any code that change Vegas objects in UndoBlock

    using (new UndoBlock("undo text"))
    {
    track.Selected = true;
    }

  • Gary James

    May 2, 2011 at 4:26 pm

    Worked perfect.

    I can see the biggest obsticle to writing scripts for Vegas will be getting familiar with the quirky coding requirements that aren’t very obvious. It’s nice to have a forum of experts that are both skilled programmers and willing to share their experience.

    Many thanks.

    Gary …

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