Export bone position to After Effects &Particle Illusion

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Fahim, Distinct Sun, Víctor Paredes, erey, Belgarath, slowtiger

Post Reply
yambr
Posts: 2
Joined: Tue Apr 13, 2010 4:31 pm

Export bone position to After Effects &Particle Illusion

Post by yambr » Tue Apr 13, 2010 5:29 pm

Script for exporting bone position form Anime Studionto After Effects & Particle Illusion

ct_export_bone_pos2ae.lua
http://www.aqwafilm.ru/files/ct_export_bone_pos2ae.lua

It works very simple. You choose one bone, and run the script. The script offers to create a file in the current directory. Enter any name and, most importantly, the extension of the text file. It is better to use ". txt". Next, open this file in any text editor, highlight all and copy to the clipboard. These datas can be inserted in After Effects (in the track position), and in Particle Illusion (the position of the emitter).

The current version of the script is 0.2. Although it works without errors, the functionality not quite satisfied me. For example, I do not know how to access to the clipboard from lua script. Therefore I introduced an extra step with a text file. The script has been tested only in Anime Studio 5.6.

The script was written during the creation of an animated movie "Brave Gonza", as well as several other useful scripts. For example, this script was used to create the first episode of the film, the animation of smoke and fire dragons. http://www.youtube.com/watch?v=kXUFyeVN5R0
Last edited by yambr on Tue Apr 13, 2010 8:33 pm, edited 1 time in total.
User avatar
Víctor Paredes
Posts: 4864
Joined: Wed Jan 26, 2005 12:18 am
Location: Ireland/Chile
Contact:

Post by Víctor Paredes » Tue Apr 13, 2010 7:48 pm

Great! I'll use this script a lot with AE.
It would be awesome if you could post the other scripts you made. If you want :roll:

Thanks!
Víctor Paredes
Former Moho Product Manager
Animator in Cartoon Saloon
My Youtube Channel - My webinars
Rudiger
Posts: 786
Joined: Sun Dec 18, 2005 2:25 am

Re: Export bone position to After Effects &Particle Illu

Post by Rudiger » Fri Apr 16, 2010 3:45 am

Wow, that animation was a wonderful piece of art. Well done!
yambr wrote:The current version of the script is 0.2. Although it works without errors, the functionality not quite satisfied me. For example, I do not know how to access to the clipboard from lua script. Therefore I introduced an extra step with a text file. The script has been tested only in Anime Studio 5.6.
I have been able to get access to the clipboard from within Lua in the Windows version of AnimeStudio by using the require statement with a cute little custom dll file.

However, if you are using a Mac I don't think I can help you, as I once tried to get it to work for a friend who had a Mac but was foiled at every turn! It seems that the Mac version of AS doesn't support the require or popen functions so you're stuck with using os.execute and I just couldn't seem to get access to the global clipboard through my command-line program, no matter what I tried.

It was awkward, though, since I didn't have a Mac to try it on and kept having to resend different versions to my friend to try out.
madriver
Posts: 93
Joined: Fri Dec 22, 2006 6:11 am

Post by madriver » Tue Jun 01, 2010 5:19 pm

Nice animation! And thank you for the script!
funksmaname
Posts: 3107
Joined: Tue May 29, 2007 11:31 am
Location: Nelson, New Zealand

Post by funksmaname » Tue Jul 12, 2011 12:46 am

I never saw this script before now! It would be REALLY useful is someone could add bone rotation into the mix? *bats eyes* :wink:
ponysmasher
Posts: 370
Joined: Thu Aug 05, 2004 2:23 am
Location: Los Angeles
Contact:

Post by ponysmasher » Tue Jul 12, 2011 8:25 am

funksmaname wrote:I never saw this script before now! It would be REALLY useful is someone could add bone rotation into the mix? *bats eyes* :wink:
Does it have to be bones? Because I just realised I never uploaded my "Export layer to After Effects" script. You'll get motion in XYZ, rotation in XYZ and even opacity.

For total accuracy you can use my Export camera to AE script.
funksmaname
Posts: 3107
Joined: Tue May 29, 2007 11:31 am
Location: Nelson, New Zealand

Post by funksmaname » Tue Jul 12, 2011 8:36 am

Yeah - I redownloaded your camera script earlier as I've got a project I might need it on. It's great!

It doesn't have to be bones - as long as a null ends up with the same movement and rotation - thanks for that! :)
jackbenimble
Posts: 1
Joined: Wed Jul 13, 2011 11:37 pm

Post by jackbenimble » Wed Jul 13, 2011 11:38 pm

I would also love for the bone export script to register rotation values. Regardless, thanks so much for posting this!
Cg_krop
Posts: 1
Joined: Fri Oct 18, 2013 6:49 pm

Re: Export bone position to After Effects &Particle Illusion

Post by Cg_krop » Fri Oct 18, 2013 8:15 pm

Hi, I know this post is a bit old, but I am working in a project and have animated a character in anime studio 9, but the rest of the project has been made in after effects, I would like to export my animated character to AE but not like a movie, to avoid loosing quality, but export the movements of the bone layer. Is it possible? I tried to download your script to try it, but it is not available anymore. Thanks a lot!
User avatar
Víctor Paredes
Posts: 4864
Joined: Wed Jan 26, 2005 12:18 am
Location: Ireland/Chile
Contact:

Re: Export bone position to After Effects &Particle Illusion

Post by Víctor Paredes » Fri Mar 16, 2018 5:39 pm

Hello. as anyone a backup of this script? I can't find it anymore.
Thanks!
Víctor Paredes
Former Moho Product Manager
Animator in Cartoon Saloon
My Youtube Channel - My webinars
Post Reply