and dynamically instantiated abstractions

    Dec 30 2013 | 7:40 pm
    hello all. happy almost new year.
    I've been banging my head on this one for a while and now turning to the cycling community for suggestions...
    I have some abstractions which themselves are instantiated multiple times in another abstraction. I'm using this setup to observe value changes of a launchpad. So each abstraction observers a particular launchpad button and I can instantiate multiples of the parent launchpad device abstraction if I want to observe multiple launchpads. My observers work if I statically instantiate the parent launchpad device abstraction. However, if I dynamically instantiate my launchpad device abstraction using newdefault calls to thispatcher or via javascript then the don't respond. I don't get the anything out of them on button value changes nor do I get the initial state when the is first initialized.
    Is this a timing issue? Is the live device not ready yet? I tried deferlow-ing the creation of the parent abstraction as well as passing in the initial control ids and nothing seems to work. Am I missing something critical here?

    • Dec 30 2013 | 10:54 pm
      It looks like a specific limitation of observers. Similarly, dynamic instantiation of observers in poly~ is also not possible (there was a forum thread about it).
    • Dec 31 2013 | 5:22 pm
      I thought I was able to dynamically create live.observers on the fly and they would work. It just seems if they are embedded in another patch and the parent patch is dynamically created then they won't work.
    • Jan 02 2014 | 9:34 am
      There seems to be some stuff done in m4l that only works at initial load - e.g. --- does not work in dynamically loaded patchers either - perhaps this is also true for the observers? Might be best to shoot a msg to c74 support and see if this is also a limitation...
    • Jan 02 2014 | 3:52 pm
      yeah I was afraid it would come down to some odd limitation. thanks for the replies, I'll prune down my patch and give c74 support a holler and reply back here with the out come.
    • Jan 06 2014 | 9:33 pm
      Just wanted to follow up, I contacted c74 support and unfortunately it's confirmed that I cannot script observers. But it was suggested that I use JS instead.