Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro Suspend Vegas Event update until finished with Events

  • Suspend Vegas Event update until finished with Events

    Posted by Gary James on May 5, 2011 at 1:19 am

    While trying to manipulate Events in the Vegas timeline, I ran across a quirky side-effect that I think explains the rather unexplained results I’m seeing.

    It appears that while I’m moving events around in the timeline, the Index property of all events are being updated in realtime. For example, move event one past the end of event 10, and all of the Event Index values get changed. Not a desireable result when I’m using the Event index value in a loop to move the events!

    I’d like to hold-off this updating until I’ve moved all my events to their final locations. Is there a Vegas equivalent of the “SuspendLayout() / ResumeLayout ()” methods found in Windows grid controls? These are the methods that put the control to sleep until it has been filled with data.

    Thanks.

    Gary …

    Gary James replied 15 years ago 3 Members · 4 Replies
  • 4 Replies
  • Stephen Mann

    May 5, 2011 at 3:38 am

    If I am reading you correctly, you have “Ripple” turned on.

    Steve Mann
    MannMade Digital Video
    http://www.mmdv.com

  • Edward Troxel

    May 5, 2011 at 2:41 pm

    Yes they do. That’s why you need to pull the events into an array or some other internal structure, then you can process the array in order moving the events wherever you wish.

    Edward Troxel
    JETDV Scripts

  • Gary James

    May 5, 2011 at 2:52 pm

    Yes, I do. But I can’t depend on the state of the Ripple Edit setting to make my script work or not.

    That’s why I was curious if Vegas had an euivalent to the method calls in Windows Grid controls that suspends firing events or refreshing the UI while items are added or removed from the control.

    In the VS2010 Object browser I see a method called “Sony.Vegas.TransportControl.Suspend()” but I cn’t find any compatible Resume() method. So I doubt this is what I’m looking for.

    If such an animal doesn’t exist, I’ll just have to find a work-around to using indexes while I’m moving Events on the Timeline.

    Thanks.

  • Gary James

    May 5, 2011 at 8:18 pm

    Thanks Ed. I came to the same conclusion just after I made my last reply. But it’s comforting to see that a Vegas script maven like yourself concurs.

    Gary …

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