ArrayArrayArrayArray BrainModular BrainModular Users Forum 2014-12-24T16:03:14+02:00 https://brainmodular.org/forums/app.php/feed/topic/4630 2014-12-24T16:03:14+02:00 2014-12-24T16:03:14+02:00 https://brainmodular.org/forums/viewtopic.php?t=4630&p=30967#p30967 <![CDATA[Using position y and heightpc to auto position patch windows]]>
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

Statistics: Posted by senso — 24 Dec 2014, 15:03


]]>
2014-12-19T06:30:39+02:00 2014-12-19T06:30:39+02:00 https://brainmodular.org/forums/viewtopic.php?t=4630&p=30926#p30926 <![CDATA[Using position y and heightpc to auto position patch windows]]>
I figured out a workaround using the height & top properties. This works as expected.

Statistics: Posted by ahonoe — 19 Dec 2014, 05:30


]]>
2014-12-19T06:21:09+02:00 2014-12-19T06:21:09+02:00 https://brainmodular.org/forums/viewtopic.php?t=4630&p=30925#p30925 <![CDATA[Using position y and heightpc to auto position patch windows]]>
I just experimented a lot with adding offsets until it worked...

Statistics: Posted by shawnb — 19 Dec 2014, 05:21


]]>
2014-12-18T02:41:34+02:00 2014-12-18T02:41:34+02:00 https://brainmodular.org/forums/viewtopic.php?t=4630&p=30917#p30917 <![CDATA[Using position y and heightpc to auto position patch windows]]>
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.

Statistics: Posted by ahonoe — 18 Dec 2014, 01:41


]]>
BrainModular BrainModular Users Forum 2014-12-24T16:03:14+02:00 https://brainmodular.org/forums/app.php/feed/topic/4630 2014-12-24T16:03:14+02:00 2014-12-24T16:03:14+02:00 https://brainmodular.org/forums/viewtopic.php?t=4630&p=30967#p30967 <![CDATA[Using position y and heightpc to auto position patch windows]]>
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

Statistics: Posted by senso — 24 Dec 2014, 15:03


]]>
2014-12-19T06:30:39+02:00 2014-12-19T06:30:39+02:00 https://brainmodular.org/forums/viewtopic.php?t=4630&p=30926#p30926 <![CDATA[Using position y and heightpc to auto position patch windows]]>
I figured out a workaround using the height & top properties. This works as expected.

Statistics: Posted by ahonoe — 19 Dec 2014, 05:30


]]>
2014-12-19T06:21:09+02:00 2014-12-19T06:21:09+02:00 https://brainmodular.org/forums/viewtopic.php?t=4630&p=30925#p30925 <![CDATA[Using position y and heightpc to auto position patch windows]]>
I just experimented a lot with adding offsets until it worked...

Statistics: Posted by shawnb — 19 Dec 2014, 05:21


]]>
2014-12-18T02:41:34+02:00 2014-12-18T02:41:34+02:00 https://brainmodular.org/forums/viewtopic.php?t=4630&p=30917#p30917 <![CDATA[Using position y and heightpc to auto position patch windows]]>
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.

Statistics: Posted by ahonoe — 18 Dec 2014, 01:41


]]>