Creates a sequence by driving a module to control state content.
Creates a sequence by using a script to control state content.
Creates a sequence by using each object connected as an individual state in the content.
Subsections of Sequences
driven sequence
driven sequence controls the semi-automatic creation of sequences for modules that support sequence driving, such as slice, cut, plume, plume shell, constant shell, read tcf, and read multi tcf. Control over these modules is via the purple Sequence Output ports on the driven modules and the Sequence Input port on driven sequence.
All modules to be grouped in the sequence must have their red output ports connected to driven sequence instead of the viewer. In this way, driven sequence acts like a group objects module.
Other modules not listed above may be included if one of the driven modules controls those modules. Examples include titles, isolines, and band data.
The driven modules have the bulk of the settings which determine what controls and states will be available, such as Use Sequencing (which must be enabled), State Control (Slider, Combo Box, or List Box), the sequence value generation method (for example Linear By Step or Linear By Count), and the State Title template used to generate the title of each state.
Ports
| Direction | Name | Type | Description |
|---|---|---|---|
| Input | Sequence Input | Sequence | The sequence to drive with this module. |
| Input | Input Objects | Renderable | Any number of renderable objects to transform. |
| Output | Current State Title | String | Text containing the title of the current state. |
| Output | Output Object | Renderable | A renderable object displaying the transformed group. |
Properties
| Property | Type | Description |
|---|---|---|
| Allow Run | Boolean | Determines whether the module is allowed to execute. Set to True to allow this module to run. |
| Current State | Sequence State | The current state of the sequence. The states and the control style (slider, combo box, or list box) come from the driven module. |
| Visibility | Visibility | Turns on or off the visible state of the output objects. |
| Favorite In Export | Boolean | Include this sequence as a favorite when exporting to web scenes. |
| Children | Object list | The list of input objects that make up the sequence. The order can be rearranged within this list. |
scripted sequence
scripted sequence provides the most power and flexibility for creating sequences, but requires creating a Python script which sets the states of all modules contained in the sequence.
The process for using this module is:
- Determine which modules’ output will be affected (controlled) by the Python script and therefore contained in one or more states.
- Connect the red output ports of those modules to scripted sequence instead of the viewer.
- Set the number of states and their names. This can be done manually or in a secondary Python script.
- Choose and set the State Control type (Slider, Combo Box, or List Box).
- Create and test the Python script which will control all modules, which must be set under Filename. A new script can be created from a default template.
Script Variables:
The script is run each time the current state changes. The following variables are available within the script:
- NumberOfStates: the total number of states
- StateNumber: the current state to set up
- StateName: the name of the current state
- N1, N2, N3, N4: user defined floating point numbers, set in the Variables group or through the Input Value ports
Ports
| Direction | Name | Type | Description |
|---|---|---|---|
| Input | Input Objects | Renderable | Any number of renderable objects to transform. |
| Input | Input Value N1 | Number | A value to use as a variable. |
| Input | Input Value N2 | Number | A value to use as a variable. |
| Input | Input Value N3 | Number | A value to use as a variable. |
| Input | Input Value N4 | Number | A value to use as a variable. |
| Output | Current State Title | String | Text containing the title of the current state. |
| Output | Output Object | Renderable | A renderable object displaying the transformed group. |
| Output | Output Value N1 | Number | A value to use as a variable. |
| Output | Output Value N2 | Number | A value to use as a variable. |
| Output | Output Value N3 | Number | A value to use as a variable. |
| Output | Output Value N4 | Number | A value to use as a variable. |
Properties
| Property | Type | Description |
|---|---|---|
| Allow Run | Boolean | Determines whether the module is allowed to execute. Set to True to allow this module to run. |
| Filename | File | The Python script which is run to set the current state contents. |
| Execute | Button | Forces the module to run. If this button is clicked and the application saved, the module will run when the application is loaded. |
| Current State | Sequence State | The current state to be passed to the script. |
| Visibility | Visibility | Turns on or off the visible state of the output objects. |
| Favorite In Export | Boolean | Include this sequence as a favorite when exporting to web scenes. |
| Children | Object list | The list of input objects that make up the sequence. The order can be rearranged within this list. |
Sequence Options
| Property | Type | Description |
|---|---|---|
| State Control | Choice: Slider, Combo Box, List Box | Determines which style of control is used for selecting the current state. |
| Allow Cycles | Boolean | Allows the state control to be cycled in CTWS files. |
| State Names | String list | The names of each state used in the UI. |
Variables
| Property | Type | Description |
|---|---|---|
| Available Variables | String (read-only) | Lists the variables available to the script during computation, such as StateNumber and StateName. |
| N1 | Double | Number passed into script. |
| N2 | Double | Number passed into script. |
| N3 | Double | Number passed into script. |
| N4 | Double | Number passed into script. |
object sequence
object sequence is the simplest of the sequence modules. You create states by connecting modules (including groups) to the input port. Each connected object becomes an individual state in the sequence. This module works much like a group objects module, in that you can rearrange the order of the modules within, each of which creates a state named with that module’s (or group’s) name.
Ports
| Direction | Name | Type | Description |
|---|---|---|---|
| Input | Input Objects | Renderable | Any number of renderable objects to transform. |
| Output | Current State Title | String | Text containing the title of the current state. |
| Output | Output Object | Renderable | A renderable object displaying the transformed group. |
Properties
| Property | Type | Description |
|---|---|---|
| Current State | Sequence State | The current state of the sequence. Each state corresponds to one connected object. |
| Visibility | Visibility | Turns on or off the visible state of the output objects. |
| Favorite In Export | Boolean | Include this sequence as a favorite when exporting to web scenes. |
| Children | Object list | The list of input objects that make up the sequence. The order can be rearranged within this list, which sets the order of the states. |
Sequence Options
| Property | Type | Description |
|---|---|---|
| State Control | Choice: Slider, Combo Box, List Box | Determines which style of control is used for selecting the current state. |
| Allow Cycles | Boolean | Allows the state control to be cycled in CTWS files. |