Parent unlocked


    Dec 03 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...
    Stefan

    • Dec 03 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.
      O.
      from inside the parentpatcher it's easy.
      function bang() {
      outlet(0,this.patcher.locked);
      }
    • Dec 03 2011 | 12:50 pm
      function bang() {
      if (this.patcher.parentpatcher) {
      outlet(0,this.patcher.parentpatcher.locked);
      }
      }