showing/ hiding UI objects- assistance required.

Jan 21, 2013 at 5:41pm

showing/ hiding UI objects- assistance required.

Hi,

Would be really grateful if anyone could help out with this..

– Pasted Max Patch, click to expand. –
#66158
Jan 21, 2013 at 6:13pm

Here a solution with “thispatcher”

– Pasted Max Patch, click to expand. –
Attachments:
  1. ShowHide.maxpat
#238137
Jan 21, 2013 at 6:31pm

Hi,

More or less the same thing that Michel but with [pattrforward] ; another approach could be to use a bpatcher and an offset.

– Pasted Max Patch, click to expand. –
#238138
Jan 21, 2013 at 6:56pm

[bpatcher] and offset (in the bpatcher help file you can find a nice example too).

Attachments:
  1. jojo.zip
#238139
Jan 21, 2013 at 8:00pm

Hi,

Thanks guys. Wicked. One more thing- how would i tweak this so that whichever is chosen is displayed in the center of screen (even if its on the edge before being selected)?

#238140
Jan 22, 2013 at 7:18am

Hi,

you can use “patching_rect” attribute to move the object (or “presentation_rect” if you are in presentation mode) ; you can query the size of the screen with [thispatcher].

– Pasted Max Patch, click to expand. –
#238141

You must be logged in to reply to this topic.