Symbol object (or id) passed along event argument

A really handy feature would be to be able to target a symbol instance via the event object.
Right now we have :

Event Object {
   timelineName: "Main Timeline",
   type: "HypeTimelineAction"
}

If only we could have the id of the symbol Instance if the event was actually trigger from within a symbol. It would be great to avoid duplicating code and creating reusable behaviour for ui symbols for example.
Ex :

  Event Object {
       symbolInstanceId : "hype-obj-54654654654654",
       timelineName: "Main Timeline",
       type: "HypeTimelineAction"
    }

Thanks.

That sounds like a a great idea, thanks for the suggestion! I will look into this and see if there is a good way for me to add it.

3 Likes

Thanks for taking it into consideration.
I look forward next updates !

Hi, I was just looking for something like that…
there is no way to get, right now, the caller Symbol from a Symbol Action? :frowning:

@Cescomare

Have a look at my post here

Yep, I used that trick in the end since I didn’t find any other (clean) working solution…

In the beta this will work! :smile:
console.log( hypeDocument.getSymbolInstanceById(element.id) );