get connected receive object name inside abstraction?

jkeston's icon

Hi all,

Is there a way to get the name of any or all receive objects connected to an abstraction from inside said abstraction? Perhaps with thispatcher? I have a patch that has hundreds of instances of a particular abstraction. Each instance of the abstraction is initiated with receive object that has a unique name. What I need is to be able to identify which receive is sending the message within the abstraction.

Thanks!

LSka's icon
jkeston's icon

I don't see any properties or methods of the Patcher object that will return the name of a connected receive object. Am I missing something? Thanks!

LSka's icon

I watched better and there's no practical way to extract the receive name via Javascript.

By the way, I found a workaround using grab:

Max Patch
Copy patch and select New From Clipboard in Max.

It requires to set the receive name via message, but that should do the trick.

jkeston's icon

Hey, thanks @Lska. Unfortunately that won't work because I'll need to change the all the all the receive objects that connect to the abstraction. I was hoping to only have to change the abstraction.

I have found a workaround to this because those receive object names are being dynamically generated and sent using the semicolon in a message box trick. So, I can just post the same value to a global send and receive it in the abstraction. Wish I'd thought of that sooner :-P