Skip to main content
Participating Frequently
March 9, 2025
Question

I need that URL to be downloaded and converted to a .glb on my computer, then imported into AE.

  • March 9, 2025
  • 1 reply
  • 324 views

Currently have a After Effects CES extension that loads a GLB url (from a API) into a GLB URL auto-filled window, I need that URL to be downloaded and converted to a .glb on my computer, after that I need it to be imported into a AE composition.
It seems releativiy simple, right?

I keep on geting these Error:
Download result: EvalScript error.
this makes me think the CSInterface.js isn't cooperating maybe. but I can't figure it out.
Any suggestions?
Thank you in advance!



1 reply

ShiveringCactus
Community Expert
Community Expert
March 9, 2025

If you have a GLB file on your computer, does it import into Blender?  If so, export it and see if that imports.

Participating Frequently
March 9, 2025

@ShiveringCactus 
Thanks for your reaply and suggestion.  I really appreciate it!

Currently I only have the URL link that a API returns like this:

https://assets.meshy.ai/7365fe9f-829c-4766-a8ca-2797bd57a922/tasks/01957b15-bb1e-7177-af70-d5eab5692d4c/output/model.glb?Expires=4895078400&Signature=dfl0lGJRBF-z6vbTJS8VvZySIc1RUJT76W1o5uY3uMdLQbA2hHHPm7iN5qeuI4ZSocOyentiT2EwJ4XPx1gJOpwFBdJd-ii8eFQHQHBk6LSnYBKamW0cvEdCp~7-il~yheKRfZR9usGROUjELB1RN1~chEKnOQU~SZIv5e3yEem6QjuK-49r5B-W3mmWHpGtJpWcdza-DlqgYVt~HPLYCKqm1Xs9wA-xugGd2N5svu3wiHt6e8N9Ot6CqnRJvEljPHGCfDVkmgdQK-3yFq4odJjqUSh1zA1caDh4kUz4P2T6PLunqNXRSWu-90qOUCSvb~poxDQY4D3GD50kmNCqsg__&Key-Pair-Id=KL5I0C8H7HX83

Here is a screen shot of the extension showing how the URL is automaticaly loaded into the extension to preview it when I click the "LoadModel" button. (it loads the THREE.GLTFLoader to preview the model within the extension)


I can coppy the link in a browser eg. chrome hit the return button and it downloads a .glb file to my computer.
I can then inport that file into AE like this

 


What I'm looking to do is when I click the "downloadFile" button the long URL link from the API is downloaded to my computer, then use the "importToAE" button to load that .glb file into AE.
Idealy I would want the "importToAE" button to do the downloading part before the import, thus saving a botton click.
But was thinking it would be to comnplicated for javascript to handle.

Anyone have any suggestions on how to do this? 
Thank you in advance!