TIMELINE_EVENT[0]
TurnipTruck
Junior Member
Greetings,
Thanks.
TIMELINE_EVENT[0]
{
nTimelineNumber=TIMELINE.ID
}
The above doesn't seem to work. Has anyone wildcarded a timeline event successfully?Thanks.
Comments
-
Nope'
There's been a long time wish for such a thing as well as a timeline array
TIMELINE_EVENT[my_timelines]
A timeline stack does work, however
TIMELINE_EVENT[timeline_1]
TIMELINE_EVENT[timeline_2]
TIMELINE_EVENT[timeline_3]
TIMELINE_EVENT[timeline_4]
{
//
} -
ericmedley wrote: »Nope'
There's been a long time wish for such a thing as well as a timeline array
TIMELINE_EVENT[my_timelines]
A timeline stack does work, however
TIMELINE_EVENT[timeline_1]
TIMELINE_EVENT[timeline_2]
TIMELINE_EVENT[timeline_3]
TIMELINE_EVENT[timeline_4]
{
//
}
You can follow that stack up with the timeline.ID parameter to figure out which timeline tripped the event too.
Here is one way I have used a stack of timelines:timeline_event[tlVolUP[1]] timeline_event[tlVolUP[2]] timeline_event[tlVolUP[3]] timeline_event[tlVolUP[4]] timeline_event[tlVolUP[5]] timeline_event[tlVolUP[6]] timeline_event[tlVolUP[7]] timeline_event[tlVolUP[8]] timeline_event[tlVolUP[9]] timeline_event[tlVolUP[10]] timeline_event[tlVolUP[11]] timeline_event[tlVolUP[12]] { stack_var integer index stack_var integer nOutput // tlVolUP is an array of timeline id #s for (index = 1; index <= length_array(tlVolUP); index){ if (timeline.id == tlVolUp[index]) { break } } nOutput = metAudioOutputMap[index] if (audSwitcher[nOutput].input) { if (audioAdjustVolume(nOutput, 2)) { send_level metreauKeypads[index], 1, ((audSwitcher[nOutput].volume * 2) + 35) } } } -
You can follow that stack up with the timeline.ID parameter to figure out which timeline tripped the event too.
Thanks guys. This is how I have been doing it. I thought the [0] would be a better way. I think I posted the same question a few years ago and got the same answer. Thanks again! -
You can follow that stack up with the timeline.ID parameter to figure out which timeline tripped the event too.
Here is one way I have used a stack of timelines:timeline_event[tlVolUP[1]] timeline_event[tlVolUP[2]] timeline_event[tlVolUP[3]] timeline_event[tlVolUP[4]] timeline_event[tlVolUP[5]] timeline_event[tlVolUP[6]] timeline_event[tlVolUP[7]] timeline_event[tlVolUP[8]] timeline_event[tlVolUP[9]] timeline_event[tlVolUP[10]] timeline_event[tlVolUP[11]] timeline_event[tlVolUP[12]] { stack_var integer index stack_var integer nOutput // tlVolUP is an array of timeline id #s for (index = 1; index <= length_array(tlVolUP); index){ if (timeline.id == tlVolUp[index]) { break } } nOutput = metAudioOutputMap[index] if (audSwitcher[nOutput].input) { if (audioAdjustVolume(nOutput, 2)) { send_level metreauKeypads[index], 1, ((audSwitcher[nOutput].volume * 2) + 35) } } }
What's the point of the for loop? Wouldn't this work just as well?timeline_event[tlVolUP[1]] timeline_event[tlVolUP[2]] timeline_event[tlVolUP[3]] timeline_event[tlVolUP[4]] timeline_event[tlVolUP[5]] timeline_event[tlVolUP[6]] timeline_event[tlVolUP[7]] timeline_event[tlVolUP[8]] timeline_event[tlVolUP[9]] timeline_event[tlVolUP[10]] timeline_event[tlVolUP[11]] timeline_event[tlVolUP[12]] { stack_var integer index stack_var integer nOutput nOutput = metAudioOutputMap[timeline.id] if (audSwitcher[nOutput].input) { if (audioAdjustVolume(nOutput, 2)) { send_level metreauKeypads[timeline.id], 1, ((audSwitcher[nOutput].volume * 2) + 35) } } } -
That would not work in this case. The timeline IDs are not 1-12, so the timeline ID is different than the index of the array.
This was from a piece of code that I originally wrote without the idea of stacking timelines, so I didn't setup the timeline IDs to be an easy sequence for that to work, so the for loop was the quickest way to do it. -
That would not work in this case. The timeline IDs are not 1-12, so the timeline ID is different than the index of the array.
This was from a piece of code that I originally wrote without the idea of stacking timelines, so I didn't setup the timeline IDs to be an easy sequence for that to work, so the for loop was the quickest way to do it.
In that case I would create a map similar to the one you are using for the outputs to avoid a for loop in a timeline.
Paul
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums