Create a dynamic parameter that will be chosen from a list
| <vizact>.choice( | |
| choices | |
| mode = vizact.LOOP |
)
choices
A list of possible inputs to the command
mode = vizact.LOOP
The method of selecting a value from the list of choices. Can be one of the following values:
Choice modes |
|
vizact.PLAY |
Choose sequentially from the beginning of the list to the end. Once the last choice is reached, it will stay at the last choice |
vizact.LOOP |
Choose sequentially from the beginning of the list to the end. Once the last choice is reached, it will jump back to the beginning and repeat |
vizact.SWING |
Choose sequentially from the beginning of the list to the end. Once the last choice is reached, it will iterate through the list backwards |
vizact.RANDOM |
Randomly select a value from the list |
Dynamic parameters allow you to control the input of an action every time it is performed. A choice parameter allows the user to specify a list of choices and a flag specifying how to choose from the list.
A dynamic parameter that can be passed to any function that generates actions.
<vizact>.randint
<vizact>.randfloat
<vizact>.fadeTo
<vizact>.sequence