How get actor object reference from a static mesh?

Hi, how can I get actor object reference from a static mesh given via blueprint?
I need to add a static mesh component and it requires an actor object reference but the tool that i’m developing need to take the user static mesh from the blueprint. How can I do without place the mesh in the scene?

Cast it. Pull the blue pin out of the static mesh node and look for cast…actor in the list…

Pulling the blue pin out of the static mesh node there are no context sensitive element in the list. Also without check the context sensitive and casting to an actor the cast alwayes fail because ‘Actor’ does not inherit from ‘static mesh’.

270270-cattura.png

Sorry Pitta. I will take a look next time I’m on the machine.

What about pulling the pin and looking for something along the lines of ‘get…actor…’?

Nope, nothing like get actor. I’m becoming mad hahaha.
I tryed adding a static mesh component, my static mesh and set the static mesh to the static mesh component getting next the owner but unfortunately it spawn just one actor and i can’t use this in a for loop.

I will take a look when I get a chance…