I did a quick test with some OnBeginCommand events (2013 SP1 only) The events were triggered in the order they were registered. So, the order depended on - order of RegisterEvent calls (alpha order of event names did not matter, I tested that) - location of plugin (User plugins loaded before Workgroup) - order of workgroups (they should be loaded in the order they are listed...I didn't test with multiple workgroups) - name of plugins in a given location ( "A_Event.py" was loaded before "X_Event.py")
I wouldn't necessarily call this conclusive, but it was suggestive... On Thu, Sep 6, 2012 at 1:58 PM, Alok <[email protected]> wrote: > Nothing is stopping me but the events are all scattered in various > plugins, libraries. As our in house python libraries are humongous > (thousands of lines of code) it will create huge maintenance issues to put > everything into one event. I have used the awesome SetGlobal() and > GetGlobal() for other purposes before and it works beautifully but for this > case it is a bit of an overkill. Never mind, it is not absolutely needed > now, I can think of something later. Anyways thanks for your insights Alan ! > > On 06/09/2012 1:33 PM, Alan Fregtman wrote: > > The only workaround I can think of is keeping track of which events have > run with global temporary variables (SetGlobal(), GetGlobal()) and if an > event fires and it shouldn't, registering a TimerEvent to re-fire that > procedure soon thereafter, thus allowing other events to fire, until they > have all fired in the right order. > > Ugly, but better than nothing. > > What's stopping you from doing all the events in one? > > > On Thu, Sep 6, 2012 at 1:19 PM, Alok <[email protected]> wrote: > >> Hi List, >> >> Is there a way we can force the order of running events in soft ?. For >> example I have two events for open scene event1 and event2. Is there a way >> I can force the events to fire in a predetermined order so that event1 is >> always fired before event2. >> >> Apparently I know the answer to this one is no but I am still asking if >> anyone has some insights. >> -- >> > > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2012.0.2197 / Virus Database: 2437/5252 - Release Date: 09/06/12 > > >
<<image/gif>>
<<Alok_Signature_email_.gif>>

