Getting bpatcher embed state from js

Apr 30, 2013 at 9:29am

Getting bpatcher embed state from js

Hi, given the following 2 calls:

post( “name: ” + this.patcher.getattr( ‘name’ ) + ‘n’ );
post( “embed: ” + this.patcher.getattr( ‘embed’ ) + ‘n’ );

the first one correctly returns the filename of the bpatcher as expected, but the 2nd one always returns null rather than the state of the embed flag? Is there another way to get this value or is this a bug?

thx Lee

Apr 30, 2013 at 9:32am

I believe that ‘embed’ is an attribute of the parent box of the bpatcher, not of the patcher itself.

Hope that helps, Jeremy

Apr 30, 2013 at 9:52am

Hi, cheers Jeremy…

I’ve tried

post( “name: ” + ‘name’ ) + ‘n’ );
post( “name: ” + ‘name’ ) + ‘n’ );

Still both null…


You must be logged in to reply to this topic.