Writing/Scripting in an existing abstraction object


    Dec 08 2021 | 3:32 pm
    Hi Forum,
    I use the Forum extensively, and usually find answers to what I search for, without having to ask.
    It is amazing how generous you people are. So thank you very much for that.
    I however have a problem that I have not found a solution to yet;
    I have an abstraction inside a [poly~] w. 12 instances. This abstraction has a number of other abstractions nested inside it, all with unique arguments derived via #´s from the top-one.
    If I want to keep this structure I have to be able to add the 12 sets of unique #-arguments to the 12 toplevel instances at patch startup.
    I can do that by creating the instances including unique arguments for each of the 12 using [thispatcher]. Fine.
    Then I also have to create patchcording and so on at startup as well. It can be done, but it seems sort of cumbersome.
    It could be handy if the toplevel abstractions and patchcords etc. existed at startup inside the [poly~], and all I had to do was script-adding the 12 sets of unique #-arguments into the 12 instances.
    In other words: I want to write/script into an existing object. Not while creating an object.
    But how to do that? I am familiar w. oldschool Max-scripting (thispatcher, sprint) but not with javascript etc.
    Any help would be appreciated.
    Rasmus

    • Dec 08 2021 | 7:03 pm
      there should be no difference between "while initialising" and "later". i am just not sure if it is a good idea to script [t #0] after initialisation. :)