Passing events between a linked asset and Antetype

I have been using cables.gl to author some pretty cool stuff. Easy enough to embed it via an iFrame and it has really helped me communicating some designs. I have also started to use spline.design for some other 3D assets and I am liking it. Here’s the thing: is there a way to pass events between an embedded model and Antetype? For example, I don’t want to re-create all my controls again in Spline. I would much prefer to receive events from Spline and pass those to my controls and vice versa. So, if I click something in Spline, it changes the state of a widget in Antetype and when I trigger an interaction from that widget, it passes the event back to Spline.
Any ideas anyone?

1 Like

FWIW, Spline allows exporting as code. Maybe this can be hooked up somehow, instead of embedding? Here is an example.
untitled.zip (1.3 KB)

1 Like

if you can use JavaScript in Spline it would be possible, but searching the documentation I did not find anything in the regard. Do you know if it is possible to execute a script for an event (like our script-actions)?

I have asked on their Discord channel.

1 Like

By the way cables.gl looks interesting. I always wanted to try out some visual programming in Antetype too, maybe this would lower the barrier for something like script actions.

Node-based interfaces are a bag of hurt.

But having said that - if it was just for small snippets, it could very well work. JavaScript is an unsurmountable barrier for most.

You just don’t want something like this, which I had to do to design a 3d interactive view cube.

:flushed:

Here is some more documentation. Have you seen this? https://www.npmjs.com/package/@splinetool/runtime

1 Like

no, thanks a lot!

1 Like

One challenge beyond the interaction would be to make the screen object follow a point on the 3D object. Vectary has a cool feature called Hotspot whereby you can have a flat, screen-plane object follow any point on the 3D object. Frustratingly, it only accepts images. If there was a way to do this with Antetype and Spline, it would make a huge difference because the only way to achieve anything remotely like this floating UI at the moment is for designers to hand-code it in cables.gl or even JavaScript and that just takes too long, or creates an unmanageable jumble of nodes