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
------------------------------
Original Message:
Sent: 12-22-2023 13:54
From: James Hessler
Subject: Xpression Transition Logic
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)
------------------------------
Original Message:
Sent: 12-22-2023 10:38
From: Azathoth Son of Cthulhu
Subject: Xpression Transition Logic
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