LogicMachine Forum
Need to create ripple effect with DALI RGB stripes - Printable Version

+- LogicMachine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Need to create ripple effect with DALI RGB stripes (/showthread.php?tid=5576)



Need to create ripple effect with DALI RGB stripes - ligoti - 26.08.2024

Hello,
I use LM5 but have no experience with scripting.
I need to create a ripple effect on 19 zones of DALI RGB light tubes, with repeating waves with different tones of blue.
Can someone help me with this? Being paid.
Thanks and regards


RE: Need to create ripple effect with DALI RGB stripes - admin - 26.08.2024

Resident script with 0 sleep time. Script assumes that your RGB objects are addressed from 1/1/1 to 1/1/19.

colors table contains RGB color values in hexadecimal form. You can add extra elements if needed.

os.sleep(1) controls the time between each step (1 second in this example).

Code:
colors = {   0xFFFFFF,   0x7F7FFF,   0x3F3FFF,   0x0000FF, } count = 19 for i = 1, count do   for j, color in ipairs(colors) do     index = i + 1 - j     if index < 1 then       index = index + count     end     grp.write('1/1/' .. index, color)   end   os.sleep(1) end



RE: Need to create ripple effect with DALI RGB stripes - ligoti - 28.08.2024

Hello,
Thank you very much. Will try it.
Best regards


RE: Need to create ripple effect with DALI RGB stripes - ligoti - 17.09.2024

Hello,

How can I create a script / routine to start a scene every 2 minutes. I have a scene that takes 2 minutes to execute. Then I wanted to start it again.

Is it possible?

Thank you


RE: Need to create ripple effect with DALI RGB stripes - Daniel - 17.09.2024

Run a scheduled script