Page 1 of 1

Posted: 18 Dec 2014, 01:41
by ahonoe
Hi Gang,

I'm trying to set things up so that my patch windows will dynamically reposition themselves based on the sizes and positions of other patches in the same rack. I'm feeding the sum of each rack's "position y" and "heightpc" params into the "position y" propery input of the next patch but patch windows overlap (see img).

Image

Suggestions would be appreciated.

Posted: 19 Dec 2014, 05:21
by shawnb
I ran into the same thing. Sorry can't help.

I just experimented a lot with adding offsets until it worked...

Posted: 19 Dec 2014, 05:30
by ahonoe
Thanks Shawn. I passed it along to Olivier to see if it's a bug, or a lack of understanding on my part.

I figured out a workaround using the height & top properties. This works as expected.

Posted: 24 Dec 2014, 15:03
by senso
the width/height/x,y relatives positions can be approximative because the result depends on the height/width of objects.

something like

x(%) = pos x of the object (pixel) / (width of container (pixel) - width of the object(pixel))

so the x(%) gives good results in the particular case of width=0

same idea for y(%)

So in your case use (absolutes) pixels positions