Re: getting presentation coordinates of object

pattr my_pattr_name @bindto my_object_scripting_name::patching_rect

Not all the attributes can be bound, I don’t think, but probably most can. You could keep track of whatever info you want about your objects, and it updates as you edit, kind of the reverse of what we generally do—we use the mouse to move and resize, or send messages/use the Inspector to change attributes of objects. Now we’re getting the info from the “other side”, so we can mess with it or store it if we want… make different object layouts, appearance presets, restrict edit values to a range, fun stuff.

– Pasted Max Patch, click to expand. –
Feb 22, 2010 at 7:53pm #174956