Hallo, Marco Donnarumma hat gesagt: // Marco Donnarumma wrote:
Thanks Frank, I was already trying to send a loadbang, but the first [instance] has the right id (1), then the following [instance] has id = 3, the next 6 and so on. Besides also other instances of [instance] with different arguments are affected the same way while sending a loadbang to the parent patch.
Yeah, that's because you loadbang all [instance] objects everytime. I think, for non-standard Pd versions you may be able to use [initbang] inside of [instance], but actually I would probably use a totally different approach not involving [instance] at all: When you create objects dynamically, you already *know* what has been created. So if you want to keep track of object IDs, just add a counter and pass them as an argument.
Attached is an example containing a subpatch I use very often.
Frank