MADRIX Forum • Triggering based on Astronomical Time
Page 1 of 1

Triggering based on Astronomical Time

Posted: Mon Oct 30, 2023 9:13 am
by Hansel
Hi guys,

I am working on a project with 500 lines of 5 meters of pixels. The client wants a scene that the each lines will act as a cloud and there will be a " ball of Sun" that will move through out the lines based on the astronomical time.

So basically they want that ball of sun move same as what the actual location/position of the sun is.

Is there any way to do this?

Re: Triggering based on Astronomical Time

Posted: Thu Nov 02, 2023 4:40 pm
by Schulze
Hi Hansel,

Welcome to the MADRIX forum!

You could use the "SCE Simple Shape" effect and a macro, which calculates the current sun position. The position data is then used to adjust the position of the shape on the matrix. On the other hand you could use the "draw" or "SetPixel" functions, which the MADRIX 5 script offers to draw a shape on a certain position of the matrix or to set a pixel to a color at a certain position.

Further information about the required functions you will find in the MADRIX 5 script documentation:
https://help.madrix.com/m5/html/script/ ... b=setpixel

To get familiar with the MADRIX 5 script I recommend to also have a look at the following documentation chapters:
https://help.madrix.com/m5/html/script/ ... cript.html
https://help.madrix.com/m5/html/script/ ... tions.html
https://help.madrix.com/m5/html/script/ ... ables.html
https://help.madrix.com/m5/html/script/ ... ments.html