Hi Forum users,
I'm hoping this is a simple script, but I haven't been able to get it to work yet. Here's what I'm trying to do:
We have a sponsor loop playing out of the sequencer. They are just instances of the same scene, and using an excel spreadsheet with datalinq we are using the volatile material script to change the material path on each item (excel sheet says "Joeys Plumbing" so it loads "Joeys Plumbing.jpg" into the volatile material). Items play through a group, set to autoplay each item for 10sec. Seems to be working smoothly. Each game there could be between 50-75 sponsors.
Now, to complicate the matter, there is a second sponsor loop, going through another framebuffer, and using the same technique to create the materials. (the purpose here is a corner bug sponsor loop that must match a full-screen sponsor loop on the other channel.) We have a dashboard panel which fires the two groups at the same time, and the groups autoplay as expected. In theory, it seems like those two loops would stay in sync forever. But in practice, we noticed a bit of drifting after a couple hours. Also, not much flexibility if we need to jump around the loop at all.
So, I'm trying to write a script on the fullscreen sponsor scene that would do the following:
- get its own take ID (On framebuffer 2)
- Add 1000 (So if it's take ID 2056, use the number 3056, which would be the corresponding corner graphic))
- take that ID online as well (on framebuffer 1)
The goal here is that we would only fire one group, and the script would always take its corresponding item in the other group. Hence, staying in sync forever. This would also give more flexibility if we needed to jump around the group at any time.
As a bonus, I'd also like to allow the script to check if a text field is empty [the sponsor name from datalinq] and if it's empty, take ID 2001 (which would start the loop over again.) This is just a safety measure for the inevitable scenario when there are not enough entries in excel to match the items in the sequencer.
Any pointers in the right direction is appreciated. Thanks very much!