Next and Previous Scene

Post Reply New Topic
RELATED
PRODUCTS

Post

Hello everyone

I'm working on a javascript controller script, it's been slow going but It's doing quite a bit so far thanks to the resources posted by the community.

I'd like to implement some buttons on my controller that allow launching the next and previous scene but with "continue quantized" selected. I see the launchWithOptions() function that should allow for something like this, but I'm unsure how to access the functions associated with the ClipLauncherSlotOrScene Interface.

I basically want to be able to do what the "shortcuts" Launch Next Scene and Launch Previous Scene do, but using "continue quantized" regardless of the the scene play mode settings.

I've experimented with creating sceneBanks, trackbanks and cursor tracks which all allow you to access scenes, but the scenebank interface doesn't seem to have a way of following the currently playing scene or reporting the index of the currently playing scene. Is what I'm trying to do possible? Can anyone point me in the direction of the interface I should be using and how I'd access it?

thanks!
-Riley

Post

Scenes do not have a play state. They only trigger the playback start of the related clips but you can always start different clips.
Only thing there is, is the selected state of a scene. You could simply use this info instead to trigger the nprevious/next scene of the selected (but also move the selected state to previous/next).

Post

ahh ok thanks!
What interface/functions should i look at to get the selected state of a scene?

Post

Use addIsSelectedInEditorObserver from the Scene.

Post

thank you very much.
Sorry if this is a foolish question, but do I need to create a SceneBank in order to use that, or is that accessed through something else?

Post

mortfell wrote: Mon Nov 07, 2022 5:06 pm thank you very much.
Sorry if this is a foolish question, but do I need to create a SceneBank in order to use that, or is that accessed through something else?
Yes, create a scene bank and for each of its' scenes register the above mentioned method.

Post Reply

Return to “Controller Scripting”