SS - After Effects Camera Export

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
SimplSam
Posts: 1048
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

SS - After Effects Camera Export

Post by SimplSam »

SimplSam's AE Camera Export+ tool allows you to export Camera property & keyframe data to the clipboard, ready for pasting directly to Adobe After Effects.

Image

It was designed as an upgrade / companion to the excellent earlier DS Camera to AE tool - created by David F. Sandberg (aka. ponysmasher) - https://www.dauid.com - discussed here: viewtopic.php?f=12&t=18091

... and complements it with these new & alternate features:
  • Instantly Saves Camera data to the Clipboard (instead of a file); ready for pasting
  • Can be run as a Button or Menu Tool
  • Reduces data size by eliminating redundant keyframes (does not bake multiple keyframes if the property only has a single value)
  • Has a modular code refactor
Image

So ... Why do you need AE Camera Export ?

The tool allows the efficient sharing of Camera configuration and keyframed positioning information from Moho to After Effects, which helps greatly when your animation workflow (finalizing, SFXing or compositing) includes one or more trips from Moho -> Ae. Thus allowing Camera movement & properties to be easily synchronized (one-way).

Image

How do I get set up ?

* To install:

- Download latest release: ss_ae_camera_export (or grab the GitHub release: ss_ae_camera_export.zip)
- Save the 'ss_ae_camera_export.lua' and 'ss_ae_camera_export.png' files to your computer into your <custom>/scripts/tool folder (or under scripts/menu)
- Reload Moho scripts (or Restart Moho)

* To use:

- Run the AE Camera Export+ tool from the Tools palette or Menu location
- If you need to view/amend the data before passing to AE, you can paste into a Excel/Spreadsheet or Text editor

Options & Features

** Currently there are no options

Notes & Limitations

There appears to be a bug in AS11 which limits the size of text passed to the Clipboard to 4096 bytes. Thus AS11 is not fully compatible with this tool.

Because the 'DS Camera to AE' tool fully baked the Camera movement (wrote every possible keyframe), it would always overwrite all previous settings. This tool is keyframe data optimized and only writes required keyframes. So you may occasionally need to clear old-keyframes (deselect the stop-watches or delete keyframes) before use.

Additional Notes:

* Compatible/Tested with MH12+
* Optimized for MH12+

Special Thanks to:

* David F. Sandberg (ponysmasher) -- https://www.dauid.com
* Stan (and the team): MOHO Scripting -- https://mohoscripting.com
* The friendly faces @ Lost Marble Moho forum -- https://www.lostmarble.com/forum/
Moho 14.1 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.1 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
Stan
Posts: 199
Joined: Sun Apr 19, 2009 3:22 pm

Re: SS - After Effects Camera Export

Post by Stan »

Great script, thanks! And special thanks for the awesome level of presentation. Sam, you are the best!
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
User avatar
Greenlaw
Posts: 9269
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: SS - After Effects Camera Export

Post by Greenlaw »

This sounds cool SimplSam. I typically comp my Moho animations in Ae so I should find this very useful. Will give it a try very soon!

Thanks for sharing it.
Post Reply