Update object position

tomslater's icon

Hello,

Does anyone know of a way to dynamically update the position and size of objects in the patcher window?

I know this info can be found in the inspector under "Patching Rectangle" but I would like to update this info into a coll as I move objects around.

Thanks,

Tom.

andrea agostini's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Hi Tom
Just change the patching_rect attribute via message:

best
aa

tomslater's icon

Thanks Andrea, but that's not what I meant. Sorry I see my question wasn't clear.

I know how to change the size and position of objects.

My question was meant to ask if there is a way for the location and size of the object to be reported as I move the object around with the patcher in edit mode?

andrea agostini's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here it is - mybutton is the scripting name of the button that you're supposed to move around. works with any object afaik

aa

tomslater's icon

Perfect, thankyou!