Changing the size of a bpatcher window once loaded

May 15, 2013 at 3:00pm

Changing the size of a bpatcher window once loaded

Hi, I’m trying to change the size of a bpatchers presentation rect through hs, but once the patcher is loaded (either dynamically or not), it seems the ‘presentation_rect’ call on the object becomes unavailable as the object changes from a bpatcher to a patcher… e.g.

var obj = this.patcher.newdefault( 0, 0, “bpatcher” );

obj.presentation( 1 );
obj.presentation_rect( 100, 100, 200, 200 );
obj.name( ‘UIMatrix’ );

This works as expected and sets the presentation rect as required. However, after the exection of the obj.name() call to load the patcher, no more calls can be made to obj.presentation_rect() as it is no longer a valid call….

Anyone any idea? thx Lee

#249462
May 16, 2013 at 11:30am

HI, anyone any ideas? thx

#249581
May 17, 2013 at 1:54am

something like that should work :

this.patcher.message(“script”, “sendbox”, UIMatrix, “presentation_rect”, 100, 100, 200, 200);

#249631
May 18, 2013 at 5:14am

brilliant, thankyou :)

#249756

You must be logged in to reply to this topic.