TIMELINE_EVENT[0]
TurnipTruck
Posts: 1,485
Greetings,
Thanks.
TIMELINE_EVENT[0] { nTimelineNumber=TIMELINE.ID }The above doesn't seem to work. Has anyone wildcarded a timeline event successfully?
Thanks.
0
Comments
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:
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!
What's the point of the for loop? Wouldn't this work just as well?
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