getting patching rectangle of an object

Sep 25, 2013 at 4:37am

getting patching rectangle of an object

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

#266201
Sep 25, 2013 at 11:55am

For ui objects you can use pattr
<code>

– Pasted Max Patch, click to expand. –

</code>

hth!
aa

#266238
Sep 25, 2013 at 3:55pm

Or use getattr:

<code>

– Pasted Max Patch, click to expand. –

</code>

#266262
Sep 27, 2013 at 8:16am

@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

#266447
Sep 27, 2013 at 8:57am

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??

#266452
Sep 27, 2013 at 2:56pm

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 ?)

#266481
Sep 27, 2013 at 5:15pm

I’m not using latest max. :(

#266485
Sep 27, 2013 at 5:26pm

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?

#266486
Sep 27, 2013 at 11:58pm

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

#266500
Oct 2, 2013 at 7:18pm

User Interface objects ok..

#266903

You must be logged in to reply to this topic.