Changing bpacher size/position in presentation mode with max scripting or Js

Carlos Caires's icon

All UI objects allow resizing in presentation mode simply by sending its coords thru attrui object.
It seems that the bpatcher @presentation_rec cannot be set by a message.
Scripting to thispatcher object doesn´t work in presentation mode...
I've also tried Js.

this.patcher.script("sendbox",varname,"presentation_size",w,h);
this.patcher.script("sendbox",varname,"presentation_pos",x,y);


and it didn't move.
Any solution?
Thanks
Carlos

attrui - jit.cellblock and attrui - bpatcher

Carlos Caires's icon

solved:

script sendbox varname presentation_rect $1 $2 $3 $4

diatom's icon

Hi Carlos,
Did you ever use this from inside a patcher called in a bpatcher object?
I'm trying to make a pkg-called patcher drop as a bpatcher (which I can do via pkg creation) but then the bpatcher always drops with a dimension of 128 x 128 which is bigger than I need.

The closest I've got so far is a prototype which is still a context menu operation I wanted to avoid.