send from js to receive

Thijs Koerselman's icon

I want to send messages and other types from js directly to receive objects
in max. All I can find in the docs and list is about sending to named
objects, which is not useful in this case. I now use a workaround by
connecting a forward to the js outlet and settings its target just before
sending the actual message. I'm just wondering if there is a more elegant
way to do this.

T-

Wesley Smith's icon

There is the Global JS object that you can use to address receive
objects. I believe there is example code of this in the JS PDF.

wes

Thijs Koerselman's icon

I must have overlooked it. Thanks.

T-