Graphics

 View Only
  • 1.  Xpression Transition Logic

    Posted 12-21-2023 22:00

    I've run into a problem with Transition Logic where I am playing one lower third on layer one and another on layer two.

    I want the lower third on layer two to check to see whether a quad object is visible so that I can change the scene directors I am using if it is.

    I have Visual Logic that decides whether ChicletImage is visible depending upon whether Chiclet has text.

    I created a rule with a script condition...does the script below read as a true or false as far as Transition Logic is concerned?'

    Thanks,

    James.

    Dim fb as xpOutputFrameBuffer
    Dim SceneLayer1 As xpScene
    Dim ChicletImage As xpQuadObject
    Engine.GetOutputFrameBuffer(0,fb)
    fb.GetSceneOnLayer(1, SceneLayer1)
    engine.GetSceneByName("SceneLayer1", SceneLayer1, False)
    scene.GetObjectByName("ChicletImage", ChicletImage)
    ChicletImage.Visible=True


    ------------------------------
    James Hessler
    WAAY TV (ALLEN MEDIA BROADCASTING)
    ------------------------------


  • 2.  RE: Xpression Transition Logic

    Posted 12-22-2023 10:39

    So, I haven't done cross scene communication, but maybe I am seeing some odd stuff here.

    fb.GetSceneOnLayer assigns a scene to SceneLayer1

    Then you clobber those results by reassigning a scene to it with engine.GetSceneByName.

    You never use SceneLayer1

    Did you mean to do SceneLayer1.GetObjectByName?

    Is ChickletImage in the current scene or SceneLayer1?



    ------------------------------
    Azathoth
    Son of Cthulhu
    ------------------------------



  • 3.  RE: Xpression Transition Logic

    Posted 12-22-2023 13:54

    Azathoth,

    Clobber! That is a good assessment---I am not a programmer, so I take snippets from here or there and try to force it to work.

    I was hoping to check the scene on layer one for whether ChicletImage was visible and answer true or false for transition logic.

    Any guidance would be appreciated.

    Thanks,

    James.



    ------------------------------
    James Hessler
    WAAY TV (ALLEN MEDIA BROADCASTING)
    ------------------------------



  • 4.  RE: Xpression Transition Logic

    Posted 12-22-2023 17:43

    I can't test this right now, so I am going to try fire this off quickly.

    Use the Debug console in case there are some typos and hopefully you can correct it.

    Dim fb as xpOutputFrameBuffer
    Dim SceneLayer1 As xpScene
    Dim ChicletImage As xpQuadObject
    Engine.GetOutputFrameBuffer(0,fb)
    fb.GetSceneOnLayer(1, SceneLayer1)
    SceneLayer1.GetObjectByName("ChicletImage", ChicletImage)
    If ChicletImage.Visible=True Then
      'desired action if Visible
    Else
      'desired action if not Visible
    End If

    I hope this is what you needed.



    ------------------------------
    Azathoth
    Son of Cthulhu
    ------------------------------