Graphics

 View Only
  • 1.  Transition logic scripts

    Posted 06-02-2024 13:13

    Hi, I have a L3 with  7 different rules for transition logic and many different timelines. 
    I tried setting up rules as normal, and added a debug message to each timeline so I know which one runs at all times. 

    Most of the rules trigger the correct timelines, but some trigger an in from one rule and out from another. Super strange..

    So I want to try scripting.

    This returns both true and false to the debugger and does not run the wanted timeline. What's wrong?

    dim styleNew, styleOld as xpTextObject
    OtherScene.GetObjectByName("Style", styleOld)
    Scene.GetObjectByName("Style", styleNew)
    if styleNew.Text = "Normal" and styleOld.Text = "Breaking" then
      Result = True
    engine.DebugMessage("True", 0)
    else
      Result = False
    engine.DebugMessage("False", 0)
    end if



    ------------------------------
    Chris Nicolay Wernersen
    ------------------------------



  • 2.  RE: Transition logic scripts

    Posted 06-05-2024 06:42

    Hello Chris,

    what I see can be only half of the truth.
    The script above is correct so far. It can only produce either "False" or "True". 

    So if you see both in the Debug-Viewer this can only mean that either the script is triggered more than once with different conditions or one of the outputs caome from somewhere else.

    Maybe you should write the Triggersource in your Debug-Message as well:

    Engine.Debugmessage("Script 1 True",0)


    regards 

    Tom



    ------------------------------
    Tom Lehmann
    CEO
    IT Services
    Frankfurt/Main Germany
    ------------------------------