Export camera to After Effects
Moderators: Víctor Paredes, Belgarath, slowtiger
-
- Posts: 370
- Joined: Thu Aug 05, 2004 2:23 am
- Location: Los Angeles
- Contact:
Export camera to After Effects
Here's a menu script that exports the camera movement to After Effects keyframe format.
Get it here: ds_camera_to_ae.zip
I've had problems (and long render times) with large images in AS pro so I wrote this to make my life easier.
It gets the camera information between the in and out point of the project and gets the camera values from every frame, not just the key frames. This is done for maximum accuracy and it's like when you track a layer in After Effects.
I haven't tried anything too advanced yet, but it seems to work.
The left image is animated in AS, the right is a still frame in After Effects with imported camera motion.
Here's an example of using the script:
Let's say I want these two characters standing on piles of money with the camera moving.
I render out the animation with the characters as PNG files (I want a transparent background) and export the camera movement to a text file.
In After Effects I import the rendered frames and Import a high resolution image of the money (that I scale down appropriatley for the scene).
If I look at the animation right now it looks like this:
But now I set the image layer to 3D (the layer with the guys should NOT be set to 3D as this layer already has the camera movement rendered).
And then create a camera.
I go to the text document with the camera movement (the one exported from AS) and copy the text inside.
I select the camera layer in After Effects and paste (Edit-paste or CTRL+V)
And there we go.
Of course you could add several other 3D layers and arrange them in 3D space and build an environment that way.
You can also import Illustrator files in After Effects, just make sure to click 'Continually rasterize' so you can scale it without getting a mess of pixels.
Note: When pasting keyframes in After Effects they will start from the frame you are on at the moment, so it doesn't matter if the keyframe data in the file starts at some other frame.
Get it here: ds_camera_to_ae.zip
I've had problems (and long render times) with large images in AS pro so I wrote this to make my life easier.
It gets the camera information between the in and out point of the project and gets the camera values from every frame, not just the key frames. This is done for maximum accuracy and it's like when you track a layer in After Effects.
I haven't tried anything too advanced yet, but it seems to work.
The left image is animated in AS, the right is a still frame in After Effects with imported camera motion.
Here's an example of using the script:
Let's say I want these two characters standing on piles of money with the camera moving.
I render out the animation with the characters as PNG files (I want a transparent background) and export the camera movement to a text file.
In After Effects I import the rendered frames and Import a high resolution image of the money (that I scale down appropriatley for the scene).
If I look at the animation right now it looks like this:
But now I set the image layer to 3D (the layer with the guys should NOT be set to 3D as this layer already has the camera movement rendered).
And then create a camera.
I go to the text document with the camera movement (the one exported from AS) and copy the text inside.
I select the camera layer in After Effects and paste (Edit-paste or CTRL+V)
And there we go.
Of course you could add several other 3D layers and arrange them in 3D space and build an environment that way.
You can also import Illustrator files in After Effects, just make sure to click 'Continually rasterize' so you can scale it without getting a mess of pixels.
Note: When pasting keyframes in After Effects they will start from the frame you are on at the moment, so it doesn't matter if the keyframe data in the file starts at some other frame.
- funksmaname
- Posts: 3174
- Joined: Tue May 29, 2007 11:31 am
- Location: New Zealand
- Víctor Paredes
- Site Admin
- Posts: 5717
- Joined: Wed Jan 26, 2005 12:18 am
- Location: Barcelona/Chile
- Contact:
Great. It reminds me another script:
Export bone position to After Effects & Particle Illusion
viewtopic.php?p=92202
This script will be very useful to me. Thank you very much
Export bone position to After Effects & Particle Illusion
viewtopic.php?p=92202
This script will be very useful to me. Thank you very much
Moho Product Manager
Rigged animation supervisor: My father's dragon, Wolfwalkers & Star Wars Visions "Screecher's Reach"
My personal Youtube Channel
-
- Posts: 370
- Joined: Thu Aug 05, 2004 2:23 am
- Location: Los Angeles
- Contact:
Oh, I haven't seen that script! *download*selgin wrote:Great. It reminds me another script:
Export bone position to After Effects & Particle Illusion
viewtopic.php?p=92202
We really should make a site for all AS scripts with categories and a search function. Maybe I'll do it myself. I'll just have to figure out a way to make the days a couple of hours longer first...
- Víctor Paredes
- Site Admin
- Posts: 5717
- Joined: Wed Jan 26, 2005 12:18 am
- Location: Barcelona/Chile
- Contact:
We thought about that some time ago. I contacted a programmer, but he never even started the project.ponysmasher wrote: Oh, I haven't seen that script! *download*
We really should make a site for all AS scripts with categories and a search function. Maybe I'll do it myself. I'll just have to figure out a way to make the days a couple of hours longer first...
anyway, check this old thread. If you could make something that would be just awesome. And I'm pretty sure if we contact Smith Micro with a concrete project they will give us some space on their servers
Moho Product Manager
Rigged animation supervisor: My father's dragon, Wolfwalkers & Star Wars Visions "Screecher's Reach"
My personal Youtube Channel
- funksmaname
- Posts: 3174
- Joined: Tue May 29, 2007 11:31 am
- Location: New Zealand
-
- Posts: 370
- Joined: Thu Aug 05, 2004 2:23 am
- Location: Los Angeles
- Contact:
I have problems with pasting in both After Effects and Photoshop. Restarting the application usually helps.
It's really annoying when you copy an image in an external application and Photoshop keeps pasting the previous image from the clipboard while other applications paste the new image. I don't know how that even works.
It's really annoying when you copy an image in an external application and Photoshop keeps pasting the previous image from the clipboard while other applications paste the new image. I don't know how that even works.
I believe this is happening when your graphics card runs out of memory.ponysmasher wrote:I have problems with pasting in both After Effects and Photoshop. Restarting the application usually helps.
It's really annoying when you copy an image in an external application and Photoshop keeps pasting the previous image from the clipboard while other applications paste the new image. I don't know how that even works.
Had it a lot when I had a 256MB card. Now I have 2GB - never happens anymore
As usual - you just need money - piles of money...
- Víctor Paredes
- Site Admin
- Posts: 5717
- Joined: Wed Jan 26, 2005 12:18 am
- Location: Barcelona/Chile
- Contact:
Re: Export camera to After Effects
Hi! I know this is an old thread, but do you know if this could work in the opposite way? Here we are looking to import the camera keys from After effects to Moho.
Any ideas about that?
Thank you very much.
Any ideas about that?
Thank you very much.
Moho Product Manager
Rigged animation supervisor: My father's dragon, Wolfwalkers & Star Wars Visions "Screecher's Reach"
My personal Youtube Channel
Re: Export camera to After Effects
I've wanted that too.
One 3D animation program I use at work called LightWave has a native script the sends the camera or nulls directly to AE, or from AE back to LightWave, with a single button click. I'd like to see something like this added to Moho.
Some 3D animation and compositing programs, can transfer camera and other elements through the FBX format. For example, I use this to transfer camera data, objects and nulls from LightWave or Maya to Fusion. This won't help for AE since it doesn't support FBX, but since Moho partially supports FBX now, it would be cool if it got support for the camera (and other elements if possible) for other animation/compositing programs to use.
One 3D animation program I use at work called LightWave has a native script the sends the camera or nulls directly to AE, or from AE back to LightWave, with a single button click. I'd like to see something like this added to Moho.
Some 3D animation and compositing programs, can transfer camera and other elements through the FBX format. For example, I use this to transfer camera data, objects and nulls from LightWave or Maya to Fusion. This won't help for AE since it doesn't support FBX, but since Moho partially supports FBX now, it would be cool if it got support for the camera (and other elements if possible) for other animation/compositing programs to use.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Re: Export camera to After Effects
Yes, camera data exchange via FBX would be excellent.