Get a scene from an ID

ruimac

Active member
I have a path to a scene and I can easily get its UUID with:

uuid_number = SendCommand(scene_path & "*UUID GET")

I can also load it into a Dynamic Scene with:

System.SendCommand("#" & dyn_scene.VizId & "*TEXTURE*IMAGE*DYNAMIC*SUBSCENE*SCENE SET " & uuid_number & "")

Then, I can get a VizId of the scene loaded into the Dynamic Scene with:

Scene_ID = SendCommand("#" & dyn_scene.VizId & "*TEXTURE*IMAGE*DYNAMIC*SUBSCENE*SCENE GET")

What I would like to have now is a way to have a variable of type Scene and get it to point to the subscene of the dynamic scene.
A variable like:

Dim my_scene as Scene
my_scene = ...whatever_it_is_required


...so, is it possible and, if yes, how can I make it?
 
You can do it by having a scene with a font in it. This font has a controltext on it. The text you put in there is the scenepath to what you want to load in the dynamic texture. Since you are already scripting it, you check for OnGeometryChanged and set that change to be the scenepath for the dynamic, then that should work.
If your Dynamic scene has multiple continues, you can have an action keyframe on your stage that basically just sends a continue to the Dynamic plugin and then jumps back to before that actionkeyframe so that it waits for the next continue.
Your TakeOut can then be done with ExecutionLogic in the template. This then sends the Out Director(which is a separate animation) a trigger to run the animation.
Hope this makes sense.
 
From what I found out, if we feed the VizId parameter of the Scene (or Director, or Channel, or Keyframes, or Container, etc) with the returned ID, stripping it from the leading "#" and converting it from string to integer, it works.
 
Back
Top