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?
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)
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.
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.
Here is some more documentation. Have you seen this? https://www.npmjs.com/package/@splinetool/runtime
no, thanks a lot!
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