Script extension data

With the new script extension type and the ability to use an object as the trigger, is it possible to get the distance to the object trigger that was clicked, like in the OnNodeTypeClicked? I want to limit interactivity when the camera is not within a certain distance (so you don’t trigger an interaction from very far away).

You could detect distance only if you are using API to setup the interactions, with extensions added from the editor it is not possible.

What you could do easily from the editor if you use objects as triggers, is to show these triggers only in certain views where camera is close to them, and hide them in views where camera is far. Objects can be hidden in the Objects tab. Is this suitable for your use case?