Graphics

 View Only
  • 1.  Order of Datalinq events

    Posted 9 days ago

    Hi

    I have a script that runs off the OnSetText event of a text box.  The contents of this text box are datalinqed to a database.  The script looks at other text boxes also linked to the same database, but I need to make sure that those text boxes are up to date before i use their contents.  I have the Requery Scene Datalinqs On Data Change checked on the text box that has the script.

    My question is, does the script run while the datalinq requery is taking place, or does it wait until that requery is done?

    In fact, is there a diagram showing the order of events from the datalinq software through to XPression and then the order of events raised in a project?

    Thanks

    Simon



    ------------------------------
    Simon Latus
    Simon Latus Media Ltd
    United Kingdom
    ------------------------------



  • 2.  RE: Order of Datalinq events

    Posted 8 days ago

    Hi Simon,

    We have some written our order of operations steps for XPression, but you are not the first person to ask for a diagram showing the order things happen in. Let me see if I can create this. 




  • 3.  RE: Order of Datalinq events

    Posted 6 days ago

    Here's the written order that Garner was talking about but sounds like you need more detail, mostly commenting as I am interested in the diagram myself haha!

    1. OnPrepare
    2. Collect Datalinqs / Load Video Clips / Load Textures etc..
    3. OnBeforeOnline
    4. Evaluate transition logic (which may include running OnTransLogicScripts)
    5. OnOnline
    6. Visual Logic Runs


    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 4.  RE: Order of Datalinq events

    Posted 6 days ago

    Thanks Simon

    What would be good to know as well, say a scene with:

    • A few datalinq'd text boxes
    • One has script on the OnSetText event
    • Does that script run once all Datalinqs have been updated, or is it an asynchronous process in that as soon as the datalinq causes the textbox contents to change, then the event fires for that text box. Which could potentially mean accessing other datalinq'd textboxes within that script has potentially out of date data from those textboxes until their datalinq has updated.
    • This question assumes that the answer to the above question has all textboxes doing their updates and running scripts asynchronously.
      • Say I have the same script running on several textboxes, and that script just calls a global sub, how does the system cope with potentially many calls to the same routine at the same time, or almost the same time.  Does it all happen within the same thread in XPression, or are different threads spawned on each OnSetText event?

    So many questions!  I have just issues in projects where not knowing how the underlying system works can get confusing!

    Simon



    ------------------------------
    Simon Latus
    Simon Latus Media Ltd
    United Kingdom
    ------------------------------



  • 5.  RE: Order of Datalinq events

    Posted 6 days ago

    A sneak peak of what is to come, I will need another few weeks. But I can say that we will produce a comprehensive diagram showing all order of operations for scene, datalinq steps, texture load, script, transition logic and visual logic.