Forums > Javascript

Parent unlocked

December 3, 2011 | 9:53 am

Is there way to find out if the parent patcher is locked or unlocked?

I have a lot of bpatchers which adapt to their size. I could poll the size while a patcher is unlocked, to adapt automatically whenever the size of the bpatcher is changed. Of course this would eat a lot of unnecessary CPU cycles when the patcher is in normal use…


December 3, 2011 | 11:02 am

i reckon it’s no problem with js. somehow with the "parentpatcher" and "locked" properties. someone else needs to help here.

from inside the parentpatcher it’s easy.

function bang() {

December 3, 2011 | 12:50 pm

function bang() {
if (this.patcher.parentpatcher) {

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