CLI/python/applescript for adding videos
  • fred_dev
    junior Member
    Posts: 6
    Joined: Thu Mar 02, 2017 3:17 pm

    CLI/python/applescript for adding videos

    by fred_dev » Wed Feb 17, 2021 9:25 am

    I have a project where I have a set of fixed mappings and artnet outputs, but the content needs to come from a large database. I will write software to go through the database dynamically and choose the videos that will be played on each output, but the database is huge and the system has multiple outputs.

    Is there a way to dynamically load videos into a cue via a scripting interface? This would be ideal, but I was thinking of another solution:

    Can I try to leverage the video loading process to do this - I would have 2 folders of videos cue1 and cue2, while cue1's videos are playing can I copy and replace the files in the folder that contains the videos referenced by cue2, and then when I go to cue2 will it load and play the replaced video files? (I would then repeat this process for videos in cue1 while cue2 is playing.

    The second solution is less than ideal, but after some investigation I don't see a way to automate the video content in a cue or the media list.

    I see a post about directory scanning - this seems not to be implemented in the software but any workarounds would be great. Or better yet if this is something that is on the cards it would be great to know as I do have some lead time on this project.
  • mad-matt
    garageCube team
    Posts: 1074
    Joined: Mon Sep 09, 2013 5:50 pm

    Re: CLI/python/applescript for adding videos

    by mad-matt » Fri Feb 19, 2021 4:00 pm

    You can send an OSC message to address "/application/medias/add" with a type "s" (string) and the file url (ie "/Users/you/Documents/"), it will import the file.
    Sending "/application/medias/remove" with type string too & this time the "media name" (ie "" - not the file url since there can be multiple instances of the same file in the project), will remove the media.

Who is online

Users browsing this forum: No registered users and 4 guests