Update object position

Jun 30, 2011 at 12:46pm

Update object position

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.

#57827
Jun 30, 2011 at 4:43pm

Hi Tom
Just change the patching_rect attribute via message:

– Pasted Max Patch, click to expand. –

best
aa

#207469
Jul 1, 2011 at 12:56pm

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?

#207470
Jul 1, 2011 at 1:05pm

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

– Pasted Max Patch, click to expand. –

aa

#207471
Jul 2, 2011 at 2:40pm

Perfect, thankyou!

#207472

You must be logged in to reply to this topic.