|
Post by coryfroke on Jul 17, 2017 21:19:41 GMT
As we continue to document MacroManager and create examples, it would be great to get some input from everyone. If you have any ideas/requests for example macros, please let me know.
-- Cory
|
|
|
Post by vsljames on Apr 18, 2018 14:09:35 GMT
Jump to 30 seconds / 10 seconds before the end of the clip in the selected layer would be very useful for rehearsals.
|
|
|
Post by Zep on Apr 20, 2018 11:28:37 GMT
Hi James, Here a script how does just that. Look at the property panel for the configuration pins. Let me know if it works for you. Zep
|
|
|
Post by motionmapping on Jun 8, 2018 21:38:38 GMT
Hey Cory, Is there a script that exists already that works with a midi controller so when button is pressed, it goes to the next clip in the bank only with manual activation?
|
|
|
Post by Suzy on Jun 12, 2018 10:59:43 GMT
Do you mean when you press the midi controller it will go to the next bank and not play or go to the next bank and play?
|
|
Showtech Christopher
Guest
|
Post by on Sept 10, 2018 23:47:51 GMT
Greetings everyone... not sure if the questions are still being answered on this but I'm trying to provide an artist with the ability to play a different video clip each night of the week for a permanent installation using an AMBA. How would that look?
|
|
|
Post by coryfroke on Sept 11, 2018 1:23:14 GMT
Greetings everyone... not sure if the questions are still being answered on this but I'm trying to provide an artist with the ability to play a different video clip each night of the week for a permanent installation using an AMBA. How would that look? Hi Christopher, Do the machines shut down at the end of the night? If so, the easiest way would be to write a layer preset for each day of the week. The script below uses Preset Bank 0, with Sunday being Preset Slot 1, Monday = Slot 2, Tuesday = Slot 3, etc... grabs the day of the week from the system time, sets the layer level to full, and loads the corresponding preset onto Mix 1 Layer 1. In the Macro Properties, you would enable "Run on MacroManager Start", and when you start the engine for the day, the script will wait 30 seconds (for the engine to fully start - you will want to adjust this time in the "sleep" line - it's in milliseconds - to account for however long it takes the engine to fully start for your project), and then execute. It will not automatically detect a change of day - it only runs when the engine is started. sleep(30000)
layer1 = HippoNet.LocalHost.Engine:FindMix(1).Layers[1]
local day = os.date("%A")
if day == "Sunday" then
layer1:SetPreset(1)
layer1:FadeLevelWait(1,1)
elseif day == "Monday" then
layer1:SetPreset(2)
layer1:FadeLevelWait(1,1)
elseif day == "Tuesday" then
layer1:SetPreset(3)
layer1:FadeLevelWait(1,1)
elseif day == "Wednesday" then
layer1:SetPreset(4)
layer1:FadeLevelWait(1,1)
elseif day == "Thursday" then
layer1:SetPreset(5)
layer1:FadeLevelWait(1,1)
elseif day == "Friday" then
layer1:SetPreset(6)
layer1:FadeLevelWait(1,1)
elseif day == "Saturday" then
layer1:SetPrset(7)
layer1:FadeLevelWait(1,1)
else
print("Failure To Identify Day of Week")
end If the machines are always running and don't get shutdown every night, it gets a bit trickier... As with the first script, you'll enable "Run On MacroManager Start", but because we don't want to continually re-load the same preset if the day hasn't changed (since that could potentially send your video back to the in-point), we need to tell it to run continuously to compare the current day with the last known day. I've got the same delay at the beginning of the script, but the "sleep" towards the end sets the interval at which to run the loop that checks the day and loads the correct preset. I have it set to one minute right now (again, in milliseconds), but you can adjust accordingly - I wouldn't set it to be more frequent than that if you don't need it, but you could certainly make it sleep longer. sleep(30000)
local layer1 = HippoNet.LocalHost.Engine:FindMix(1).Layers[1] local lastDay
while true do
local day = os.date("%A")
if lastDay == day then
elseif day == "Sunday" then
layer1:SetPreset(1)
layer1:FadeLevelWait(1,1)
lastDay = day
elseif day == "Monday" then
layer1:SetPreset(2)
layer1:FadeLevelWait(1,1)
lastDay = day
elseif day == "Tuesday" then
layer1:SetPreset(3)
layer1:FadeLevelWait(1,1)
lastDay = day
elseif day == "Wednesday" then
layer1:SetPreset(4)
layer1:FadeLevelWait(1,1)
lastDay = day
elseif day == "Thursday" then
layer1:SetPreset(5)
layer1:FadeLevelWait(1,1)
lastDay = day
elseif day == "Friday" then
layer1:SetPreset(6)
layer1:FadeLevelWait(1,1)
lastDay = day
elseif day == "Saturday" then
layer1:SetPrset(7)
layer1:FadeLevelWait(1,1)
lastDay = day
end
sleep(60000)
end Note: If you manually change Layer 1 while the above script is running, no changes will be applied until the day changes. Let me know if you have any questions! -- Cory
|
|
Showtech Christopher
Guest
|
Post by on Sept 11, 2018 4:37:29 GMT
Cory... that is awesome thanks. The system does not reboot every day - as a matter of fact we try not to reboot it unless absolutely necessary. Although I usually end up resetting it once a month. I'll do my best to work on setting this up. The Amba we have is a BETA unit that has dual output and so I have to make sure that Macro Manager and Timeline will accept this based on an older version of the software but my fingers are crossed.
I haven't set up Timeline and Macro manager before so it might take me a few hours to get it all ship shape.
I'll let you know how it works out.
Christopher
|
|
|
Post by coryfroke on Sept 11, 2018 16:40:56 GMT
Hi Christoper,
What version of software are you running on that Amba?
|
|