Abstractions open in Bpatcher using arguments and attributes
Hi,
I’m trying to open an abstraction directly embedded in a bpatcher when I instantiate it by its name in a simple object box. Additionally, I want to be able to use arguments and attributes.
For now, I’ve created an objectmapping.txt file in the init folder of my package with the following commands:
max objectfile abstraction-name abstraction-name;
max definesubstitution abstraction-name bpatcher @name abstraction-name @border 1;
When I call the abstraction by its name in a patcher, it opens embedded in a bpatcher with the border.
However, I haven’t figured out how to use arguments and attributes. Ideally, I’d like to be able to call, for example, "abstraction-name 3 @myAttribute toto", which should be replaced by "bpatcher @name abstraction-name 3 @myAttribute toto @border 1".
Does anyone have an idea how to achieve this?
Thank you in advance,
PG
unless i am missing something i think can not work that way.
there alternatives which are close... like ... you could write "abstraction-name 3 @myattribute toto" into a [textedit] and then make <return> trigger the script-creation of the bpatcher incl. arguments. (not sure about using attributes though)
in the end everything is better than writing the arguments to a bpatcher in its inspector. :)
Trying to do the same without success... Any update on that PG ?
No, we tried to implement this in the abc library package, and for now we have chosen to limit the use of attributes (for abstraction, directly replaced by bpatcher) inside the inspector window.