Scripting in presentation mode

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

Hello Maxers,
I would like to alter the size of an object, a matrixctl in my example, by scripting. In edit mode there is no problem I can change the size of my object as I want by scripting to thispatcher. In presentation mode there is no way to change size. What am I doing wrong?
Waiting for an answer.
Filippo

Jan M's icon

Hi Filippo,

Max Patch
Copy patch and select New From Clipboard in Max.

with "script size ..." you change the "Patching Rectangle" attribute of an object. But in presentation mode the "Presentation Rectangle" is the relevant one.
You can change it by sending a "presentation_rect ..." message to the object:

jan.

_HasBeen_'s icon

Thanx Jan,
So we can say thispatcher object is irrelevant for such a job.
Have a good night!
Filippo