Mosaic & QSYS

I've been working with QSYS for an installation, and have been loving it. They integrate rather well together. Mosaic is completely controlled by QSYS, to the point that the 2 button stations from Mosaic don't even activate anything on Mosaic, they send which button was pressed to QSYS, then it decides what to tell Mosaic to do.

One question I've been wondering as I dabble in Mosaic Scripts, is there a method where I could send a long string of text and Numbers to QSYS based on Mosaic features?

For example, My scripts in QSYS use a central area where currently I type in the Timelines, the Timeline Numbers, Scenes, Scene Numbers, Groups and Group Numbers, and then QSYS references that whenever I use controls.

But what I would like to do is send a command from QSYS to Mosaic asking for a string. This string would ideally include, "Timeline 1 Name, Timeline 1 Number, Timeline 2 Name, Timeline 2 Number, etc for all the Timelines saved on the Mosaic. And being able to do something similar for Scenes and Groups would be phenomenal.

Has anyone done something similar or could point me in a direction that could help accomplish this?

  • This is doable.  Look in the Help files at the “API v4” section for ways to get the data.

  • So I can see Getting Name for Timelines, Scenes, and Groups, but this would require knowing if the Mosaic has data stored in the number slots.

    What I'm missing then is some way to ask the Mosaic something like:


    Which would return a string with all of the group numbers like,


    Then I could use that string to then ask for names for each group.

  • Something along these lines, but probably cleaner than this:

    local i = 1
    tlCount = 1
    maxTl = 500
    availableTls = {}

    while i <= maxTl do local tl = get_timeline(i)
    if tl ~= nil then
    availableTls[tlCount] = tl
    tlCount = tlCount + 1
    i = i + 1

    //Do whatever you want to get this data out, but here is an example when debugging to log it out

    index = 1, tlCount, 1 do log(availableTls[index].number .. “, “ .. availableTls[index].name
  • Ah that makes sense, check across a range and see if the name field is not nil. that seems like a great method.

Reply Children