mixamo_anims_downloader
mixamo_anims_downloader copied to clipboard
Save also the gifs for each animation to a subfolder.
Hi there, some time ago I found this script and I used it to download all the Mixamo animations that I could, after downloading the animations I found myself with the need to organize them so I started using Connecter which is pretty good to keep models and animations organized, the problem is that Connecter needs something to be used as thumbnail for each animation, normally it generates the thumbnail from the fbx file but the animations from Mixamo do not contain a model and they just have the animation so all the thumbnails are empty which makes it hard to know what a fbx file contains, Connecter allow you to just have a gif file somewhere inside the same folder or a subfolder where the animations are and if the fbx/animation and the gif have the same filename it will automatically link them, if this script could also save all the gifs that are also on mixamo with each animation this would be really helpful, I tried doing that myself but had no luck with it as I'm not good enough with javascript. I would really appreciate if this could be implemented on the same script or as a different optional script.
Hi, i had a very very quick look at mixamo and i have seen the animations are just static files that you can fetch just knowing the ID. The URL is https://d99n9xvb9513w.cloudfront.net/thumbnails/motions/102970901/animated.gif
The problem is not getting the .gif but downloading and renaming them, I tried doing that manually but its a lot of files, also the filename on the mixamo urls are always animated.gif, downloading all the gifs with an extension like Image Downloader for firefox will save all the gifs with the same filename which is not useful, as I said before in order to use the gifs as thumbnails on Connecter they must have the same name as the fbx/animation.
The following code would allow you to download the images as long as the url has same origin. Since the images are hosted on cloudfront and not mixamo you may need to disable the same origin policy in chrome (google for it).
function saveImage(urlOrBase64, fileName) { var link = document.createElement("a");
document.body.appendChild(link); // for Firefox
link.setAttribute("href", urlOrBase64);
link.setAttribute("download", fileName);
link.click();
}
saveImage("http://www.gnuton.org/intro.jpg","ciao.jpeg")