Forums > MaxMSP

getting patching rectangle of an object

September 25, 2013 | 4:37 am

Is it possible to get the patching_rectangle of an object??


September 25, 2013 | 11:55 am

For ui objects you can use pattr
<code>

– Pasted Max Patch, click to expand. –

</code>

hth!
aa


September 25, 2013 | 3:55 pm

Or use getattr:

<code>

– Pasted Max Patch, click to expand. –

</code>


September 27, 2013 | 8:16 am

@andrea stupendo! e pensare che per due giorni ho cercato come un pazzo questa soluzione, trovando complicati modi attraverso java, script e cose del genere, e le persone a cui ho chiesto, proponevano modi assurdi, e ora tu mi fai sta patch! perfetto! :D
You have made my day!
Una cosa però: perchè hai scritto "for UI objects"?

@emmanuel I haven’t the object getattr:
no such object getattr
no help file found getattr


September 27, 2013 | 8:57 am

One more thing: is there a way for getting the Patcher’s patching_rect?
<code>

– Pasted Max Patch, click to expand. –

</code>
This is a way for size it, but how can i get patching_rect from it??


September 27, 2013 | 2:56 pm

if you give your patcher a name, via its inspector or thanks to the pattrmarker object ; you can then access its patching_rect with the abovementioned methods.
(regarding getattr : are you using latest max ?)


September 27, 2013 | 5:15 pm

I’m not using latest max. :(


September 27, 2013 | 5:26 pm

f you give your patcher a name, via its inspector or thanks to the pattrmarker object ; you can then access its patching_rect with the abovementioned methods.

i’m trying this method but i can’t do it… can you post some example please?


September 27, 2013 | 11:58 pm

Una cosa però: perchè hai scritto "for UI objects"?

I wrote "for UI object" because it won’t work for non-UI objects! If that’s what you need, I’m afraid you should turn to JavaScript.

aa


October 2, 2013 | 7:18 pm

User Interface objects ok..


Viewing 10 posts - 1 through 10 (of 10 total)