Next and Previous Scene
-
- KVRist
- 32 posts since 15 Dec, 2014
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
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
- KVRAF
- 4888 posts since 13 May, 2004
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).
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).
- KVRAF
- 4888 posts since 13 May, 2004
Use addIsSelectedInEditorObserver from the Scene.
-
- KVRist
- Topic Starter
- 32 posts since 15 Dec, 2014
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?
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?
- KVRAF
- 4888 posts since 13 May, 2004
Yes, create a scene bank and for each of its' scenes register the above mentioned method.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?
