Excellent, pleased I could point you in the right direction. :)
Original Message:
Sent: 07-04-2022 08:37
From: Svetlin Aleksandrov
Subject: Get Data/Content from currently online scene
Yup, adding those 2 lines before everything else has solve the problem
Engine.GetProject(0, project)Engine.SetActiveProject(project)
maybe I will change GetProject to GetProjectByName for the final version
Tnx Red,
very fast and helpful responses from you!
------------------------------
Svetlin Aleksandrov
Motion Graphic Designer
Euronews Bulgaria
Original Message:
Sent: 07-04-2022 07:43
From: Simon Redmile
Subject: Get Data/Content from currently online scene
Checking the SDK looks like you can set project to active.

Under engine there's a get project property.

I think you could probably put a engine.GetProject then set as active?
Another option to look at might be changing the script from engine to self.project although it depends where the script is failing, if its before you've got the scene from the framebuffer that could complicate things.
Engine.GetMaterial
to
Self.Project.GetMaterial
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
Original Message:
Sent: 07-04-2022 07:26
From: Svetlin Aleksandrov
Subject: Get Data/Content from currently online scene
Hey Red,
I've hit a wall. Everything is working properly from Xpression Sequencer, but when the slides are loaded trough Inception then the script is failing and not working. I've found that you should "Activate" the project on order to work

but unfortunately that cannot happen cuz the studio cg operators are working on a remote sequencer and they have no access to Xpression Studio machines.
Is there any workaround that you can suggest?
------------------------------
Svetlin Aleksandrov
Motion Graphic Designer
Euronews Bulgaria
Original Message:
Sent: 07-01-2022 09:46
From: Simon Redmile
Subject: Get Data/Content from currently online scene
Nice one! Good work!
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
Original Message:
Sent: 07-01-2022 09:45
From: Svetlin Aleksandrov
Subject: Get Data/Content from currently online scene
Tnx Red,
that worked. I was able to pull the full path of the video form the online scene.

dim fb as xpOutputFrameBuffer
dim prevScene as xpScene
dim bg as xpBackgroundObject
dim mat as xpMaterial
dim matLayer as xpMaterialLayer
dim video as xpBaseShader
dim txt as xpTextObject
Engine.GetOutputFrameBuffer(0,fb)
fb.GetSceneOnLayer(0, prevScene)
prevScene.GetObjectByName("Video", bg)
bg.GetMaterial(0, mat)
mat.GetShader(0, video)
Self.GetObjectByName("Text1", txt)
txt.Text = video.FileName
------------------------------
Svetlin Aleksandrov
Motion Graphic Designer
Euronews Bulgaria
Original Message:
Sent: 07-01-2022 08:18
From: Simon Redmile
Subject: Get Data/Content from currently online scene
The online scene I can help with, here's an example where I am copying text from one online scene to another. This is a text object script calling another scene to get its data.
dim textparent, textchild as xpTextObject
dim parent as xpScene
dim fb as xpOutputFramebuffer
engine.GetOutputFramebuffer(0, fb)
fb.GetSceneOnLayer(2, parent)
parent.GetObjectByName("Combined", textparent)
self.GetObjectByName("Text1", textchild)
textchild.text = textparent.text
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
Original Message:
Sent: 07-01-2022 08:14
From: Svetlin Aleksandrov
Subject: Get Data/Content from currently online scene
Same framebuffer, same layer. As I mention very similar to b2b... or basically it is b2b
Yeah I'm reading it too, but I'm new to Xpression and also never used VB, so it's a little confussing how exactly to get that online scene :D
------------------------------
Svetlin Aleksandrov
Motion Graphic Designer
Euronews Bulgaria
Original Message:
Sent: 07-01-2022 08:08
From: Simon Redmile
Subject: Get Data/Content from currently online scene
Are those scenes always on the same framebuffer and layer because you could do an OnOnline script that goes and looks for the scene on a particular layer.
I've never tried to then find out whats loaded but perhaps you could get the object, pull the material and then the shader and find out, I am just reading the SDK for ideas.
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
Original Message:
Sent: 07-01-2022 07:57
From: Svetlin Aleksandrov
Subject: Get Data/Content from currently online scene
Hi Red,
This scene will be added several times though Inception with a different video loaded. The problem is that in the studio they can decide to skip a scene or to play them in different order and the animation should stay seamless. Thats why the scene to be played should know what is playing currently so it can make one of 4 animations.
They are playing it through Remote Sequencer.
------------------------------
Svetlin Aleksandrov
Motion Graphic Designer
Euronews Bulgaria
Original Message:
Sent: 07-01-2022 07:48
From: Simon Redmile
Subject: Get Data/Content from currently online scene
I have never tried to pull that info from the currently online scene. How is that clip getting selected? Manually? Do they Change or are those ID numbers always plaything those particular videos?
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
Original Message:
Sent: 07-01-2022 07:15
From: Svetlin Aleksandrov
Subject: Get Data/Content from currently online scene
Is it possible to pull data from the current played scene in sequencer to the one to be played? I need the scene to know which video is loaded in the scene that is currently online. So next scene to be played to do animation based on the video loaded in current scene that is online.

So Slide3 should know which video is in the slide that is online.
Also I wrote this to get the video name in the current scene, but how to get it from the one that is online?
dim mat as xpMaterial
dim layer as xpMaterialLayer
dim video as xpBaseShader
dim videoName as String
Engine.GetMaterialByName("Mat1", mat)
mat.GetLayer(1,layer)
layer.GetShaderByName("Video", video)
videoName = video.FileName
------------------------------
Svetlin Aleksandrov
Motion Graphic Designer
Euronews Bulgaria
------------------------------