405place
WatchMaker Feature Requests All the ideas and discussions
2 votes Vote

Arrays of layer, with lua table variables as attributes

I'd like to be able to define a single layer, like a shape, or a text field, or even an image, and identify it as an array of multiple copies of that layer. Maybe just add a "copies" field that defaults to 1, but I can increase to however many copies I want. And within the layer properties, I'd like to be able to set attributes to lua table variables. So if I have a table named var_bx, and I set that as the x coordinate in the layer, the individual layers would get x coordinates of var_bx[1], var_bx[2], etc.

This would have come in very handy for a weather forecast watch face I made. It had 48 squares, 48 circles, and 48 images, which I used as hourly temperature, precipitation, and cloud cover indicators on a weather graph. Each of those sets of layers were identical with the exception of the index into lua table variables for the x and y coordinates, height, width, color, opacity, etc. It was a pain to generate all of those unique layers.

Thanks for your consideration!

kzibart, 27.01.2020, 19:53
Idea status: under consideration

Comments

Leave a comment