Code: Select all
[Variables]
meterWidth = 1920
colCount = 5
coverWidth = (#meterWidth# / #colCount#)
coverHeight = (#coverWidth# * 215 / 460)
[1]
X = 0
Y = 0
[2]
X = (1 % #colCount# = 0 ? 0 : #coverWidth#r)
Y = (Floor(1 / #colCount#)) * #coverHeight#
[3]
X = (2 % #colCount# = 0 ? 0 : #coverWidth#r)
Y = (Floor(2 / #colCount#)) * #coverHeight#
[4]
X = (3 % #colCount# = 0 ? 0 : #coverWidth#r)
Y = (Floor(3 / #colCount#)) * #coverHeight#
[5]
X = (4 % #colCount# = 0 ? 0 : #coverWidth#r)
Y = (Floor(4 / #colCount#)) * #coverHeight#
[6]
X = (5 % #colCount# = 0 ? 0 : #coverWidth#r)
Y = (Floor(5 / #colCount#)) * #coverHeight#
[7]
X = (6 % #colCount# = 0 ? 0 : #coverWidth#r)
Y = (Floor(6 / #colCount#)) * #coverHeight#
[8]
X = (7 % #colCount# = 0 ? 0 : #coverWidth#r)
Y = (Floor(7 / #colCount#)) * #coverHeight#
[9]
X = (8 % #colCount# = 0 ? 0 : #coverWidth#r)
Y = (Floor(8 / #colCount#)) * #coverHeight#
[10]
X = (9 % #colCount# = 0 ? 0 : #coverWidth#r)
Y = (Floor(9 / #colCount#)) * #coverHeight#
Any idea how to deal with this?
This is the approach with which I got furthest with but I'm open to alternatives too.