This component provides a framework for creating a scene based show where each scene of a show is a component that outputs video from a single TOP called out1. The sceneChanger component references a "Scenes" component from which it will load all "Scene" components it finds inside. The SceneChanger is able to play each component and will cross fade from one component to the next. The workflow of this system, if correctly followed, is implicitly optimized in the sense that scenes that are not being played currently will also not cook.
Note: There is never a need to go inside the sceneChanger component. It is designed to work along side your own network.
- Drag in the sceneChanger component from the Tools section of the Palette.
- Create an empty BaseCOMP beside the newly created sceneChanger component, and name the baseCOMP "scenes".
- Reference the "scenes" BaseCOMP in the Scenes COMP parameter of the sceneChanger component.
- Click the "Generate Scene Template" pulse button found on the sceneChanger custom parameters. This will generate a sceneTemplate component. Cut this component and paste it into the "scenes" BaseCOMP.
- Rename the sceneTemplate component to any name you like for the first scene.
- Anything can go into a scene component. The only requirement is that the out1 TOP must be present. If this operator is removed, renamed or the type is changed to something other than a TOP then the scene will be broken.
- By default there is a TextTOP with its "text" parameter set to SceneTemplate. Change each scene to make them unique.
- All scenes must be the same resolution. This limitation is purposeful as a cleanly running show should have a strict resolution. TOP networks that dynamically change resolution cause new memory allocations which lead to frame drops. This regime ensures the TOP resolutions that pass trough the out1 TOP are always linked to the resolution of the scene component they are inside. Ideally all resolution parameters of the system are bound hierarchically to a custom resolution parameter at the top level of the show system. This will also result in a system that has the flexibility to change to any resolution easily.
- To make another scene simply copy a previously created scene.
What is the Scenes component?
The scenes component is created by you, the user of the sceneChanger. The scenes component can therefore be customized in whatever way you desire. There is no specification for the scenes component other than the fact it must be referenced by the Scenes COMP parameter of the sceneChanger component. Once the reference is made, you put Scene components inside and the sceneChanger will find the scenes and will allow you to change between them.
What is a Scene Component?
A scene component can be created by clicking Generate Scene Template button parameter located on the Scene Changer page of sceneChanger. You can copy and paste this component into the scenes component that you make.
A scene component is configured with the following attributes:
- A parent shortcut that is called Scene.
- A tag called TDScene.
- A custom parameter page called Scene Settings.
- The contents of the scene component can be replaced except for the out1 TOP.
- Do not add custom parameters to the Scene component. It is meant to be a wrapper for any component you wish to put inside.
- If you are building a system that may require custom parameters or its own extension, it is recommended you start by working inside a new child component such that you can add your own parameters to it. This will also make features that you add to your scenes more portable.
Scene Component Parameters
The Start pulse button is run by the sceneChanger system when a new scene has been fired. The Start pulse is run, and then the sceneChanger is loaded into the sceneChanger AB mixer and is faded into. The Init pulse button is run after the scene is faded out of. This provides an event for cleaning up and resetting the scene such that it is ready to be started again.
The Play and Length parameters are provided to the user but serve no purpose for the sceneChanger system.
Fade In and Fade Out time parameters will be used by sceneChanger system if the SceneChange function keyword argument for FadeTime is not specified.
To change scenes using Python there is a SceneChange() custom method.
Usage 1: Blends to scene index number 2 - which is the 3rd scene listed in the scene index table. No fadeTime is specified so the fade in time from the new scene and the fade out time from the current scene are used in the cross fade.
Usage 2: Blends to scene index number 2 with a fade in and fade out time of 3. Currently fadeTime specifies both.
Usage 3: Blends to scene string name with a fade in and fade out time of 3.
Parameters - Scene Changer Page
Help - Opens this help page.
Version - Shows the current version of this component.
Resolution - ⊞ - Sets the resolution for the sceneChanger component. All scene components should match this resolution. Ideally this parameter is bound to the same parent parameter as the scene component resolution parameter.
Scenescomp - Specifies the parent scenes component that holds all the scene components which will be controlled by this sceneChanger.
Nextscene - Specifies the index of the next scene that will be played when the Fire Scene parameter is clicked.
Fadetime - The global cross fade time for blending from one scene to the next. This blend time can also be specified using the scripting commands or the local fade settings of each scene component.
Firescene - This will activate the next scene as specified by the Next Scene parameter. The sceneChanger will immediately run the Start pulse button the specified next scene component. As well it will cross from the current scene component to the next over the time period specified by the fade time settings.
Currentscene - The index of the current scene.
View Scene Index
Viewsceneindex - Displays the scenes DAT that shows a mapping of scene index to scene component name.
Generateui - Create a simple widget based (radio buttons) UI that allows for fast changing between each scenes available in the referenced Scenes COMP.
Generate Scene Template
Generatescenetemplate - Create a simple COMP with a predefined set of parameters that the sceneChanger COMP can make use of when firing a scene change.
Reset - Reset the sceneChanger COMP to a default state.
- Input 0 - Accepts a table of scene names. The table format is a single column of names. The first row is the header called "Name". This table allows the user of sceneChanger to build their own scene changing solution.
- Output 0 - The final output of the show sceneChange system. This is the final output which can be passed along to other systems, streamed or displays.
|• • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •|