Forums > MaxMSP

[bug] object size attribute

January 3, 2012 | 2:57 pm

I notice that the behavior of the size attribute doesn’t work quite the way it is described in the reference document.

It is described as follows:
Sets the object’s width and height in both patching and presentation modes (if the object belongs to its patcher’s presentation), leaving its position unchanged.

This attribute does not seem to affect the size of an object in presentation view, and only responds to coordinates as integers. Floats are ignored.

I am using Max 6

– Pasted Max Patch, click to expand. –

January 3, 2012 | 8:33 pm

You have to send the size to the box of the bpatcher for this to work. (script sendbox "name" size x y)

– Pasted Max Patch, click to expand. –

what do you want with floats for pixels?
O.


January 3, 2012 | 11:14 pm

Thanks for the help with this. I have been confused about what has to be sent via sendbox and what does not. That must be what g/s means in the docs.

I wondered why they ask for floating point numbers to describe pixels in the documentation, it seems like that is an error.

What I would really like to do is have the patch inside the bpatcher resize the bpatcher rectangle from within, just to avoid extra objects on the main patch.

Thanks again!
MH


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