How to get position of module relative to parent ?
Archive · 200910 old posts
From the original SynthMaker forum (2004–2014), with its members’ names and dates.
mrlucmorin ·
Hi,
Is it possible to determine the position of a component within its Parent module ?
For example, if I manually move a Knob within a module's front panel (by removing the padlock), how can I obtain the x,y coordinates of its position within the module's front panel ?
Thank you.
oddson ·
The same View Area primitive that was the answer in your last question is what you need here too.
If you attach a View Area primitive to the V input in the child module, then an Area to Float module will allow you to extract the x and y offsets.
I'm not at my SythMaker machine so I can't verify or produce an example. It may be a little trickier if the child module uses a "G" panel instead of an MGUI...
mrlucmorin ·
Actually, I had tried the View Area primitive, but the offset is always (0,0).
In my child module, I place one such View Area directly at the wireless input, and another one at the MGUI output, like this:
No matter how I resize/position the child module inside the parent, the x, y position coordinates are always (0,0).
I'm sure I'm missing something simple 😊
Thanks
oddson ·
😊 That's what I meant... I could have sworn that works.
Now I'm thinking I remember someone requesting the ability to read the placement of MGUI elements.
oddson ·
oddson wrote: Now I'm thinking I remember someone requesting the ability to read the placement of MGUI elements.
😊
er... it was me!
Can I access the offsets frin the GUI frontpanel?
Hey Luc! were both in Canada... let's go for coffee.
We can meet in Winnipeg (half way at 1900 km). 😉
mrlucmorin ·
oddson wrote: er... it was me!
Can I access the offsets frin the GUI frontpanel?
Hahaha that's funny... old age creeping in 😉
Hey Luc! were both in Canada... let's go for coffee.
We can meet in Winnipeg (half way at 1900 km). 😉
uhuh, only if you pay for the plane tickets 😉
About the position thing, I found a way to work around it, but still it would be nice. I'll repost to the Ideas and Requests forum.
Thanks
oddson ·
The only way to work around it is to use explict positioning instead of G panel dragging... it would be nice to have the missing feature.
mrlucmorin ·
Yeah, and not having explicit positioning was the whole idea 😈
So oddson, ever been to Quebec ? The farthest west that I've gone is Calgary. That country is too big, we should break it up 😉
oddson ·
mrlucmorin wrote: ...So oddson, ever been to Quebec ? The farthest west that I've gone is Calgary. [this] country is too big, we should break it up 😉
You guys keep trying but who'd pay for your social programs without transfer payments. 😉
McBarGig ·
HaHa LOL...
I've Been from Quebec att the way to Van Oddson...Both great provinces..
Wrote something here? To have a post removed or your name hidden, write to [email protected].