Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on Twitter
LIBRARY:TutorialsVideo TutorialsReviewsInterviewsEditorialsFeaturesBusinessAuthorsRSS FeedTraining DVDs

Maya Camera Import into After Effects

COW Library : Adobe After Effects basics Tutorials : Rene de la Fuente : Maya Camera Import into After Effects
Maya Camera Import into After Effects 5.5



Maya Camera Import into After Effects 5.5
by René de la Fuente & Will Scates, Phoenix, Arizona, USA
©2002 René de la Fuente & Will Scates and CreativeCOW.net. All rights reserved.

Article Focus:
It makes sense to use a 3D program to create a 3D scene; but what if you need to re-use the camera motion info from that scene for advanced compositing? In this tutorial, René de la Fuente and Will Scates walk through the basic steps needed to accomplish this using Alias|Wavefront's Maya 4 and Adobe After Effects v 5.5
.


Download Movie Project files Download Stuffit Expander for Windows


---Abstract---

One of the outstanding features of Adobe's After Effects v 5.5 is its ability to create and use 3D space to develop a motion graphics composition. While After Effect comes with 3D cameras, lighting and scene development, it also permits you to directly import camera motion and objects created within Alias|Wavefront's Maya 4.

This technique is quite useful if you have to composite or work directly on elements within a 3D rendered file; for example, you have a rendered scene that places certain objects in motion relative to a camera. You can use this scene info directly from Maya 4, and replace nodes while keeping the same camera movement and views in your motion graphics composition in After Effects. However, being able to actually do this isn't as straightforward as it could be. So we developed this tutorial to walk you through some of the important steps in this process.

In this particular tutorial, we use Maya 4 and After Effects 5.5 Production Bundle. Shortly, Maya 4.5 will be out on Mac and PC platforms, but for now, we'll focus on the PC version of Maya 4.


---What You Need to Get---


Obviously, having both Maya 4 and After Effects 5.5 Production Bundle would be very helpful. We've created some work files in Maya 4 that you can import into After Effects if you don't have Maya already. In the near future, Maya 4.5 will be released for both Mac and Windows platforms, so the files can be opened in that version. But since Maya 4 was only a PC version (the Mac OSX version of Maya 3.5 is not fully compatible with the Windows version of Maya 4), bear with us on the file formats.

Here are the files related to this project (download the files from the green bar above.):

  • Maya_to_AE.ma -this is our sample scene file from Maya 4;
  • Maya Camera Import.aep -this is the sample After Effects composition;
  • a.jpg, b.jpg, c.jpg -these three files are the sample layers used in the *.aep file.


---Things You Do in Maya---


First off, we won't even pretend to try to teach you how to use Maya... we make the assumption that you know enough about the user interface and feature set to get by. But here's a thing to keep track of: as you work in Maya 4, remember that in your world coordinate system, the Z axis is where your face is pointing, so use your Channels Box to double-check things if you get lost.


1. Use a Locator
Go to Create>Locator. This places a reference in 3D space for you to observe the orientation
of your object. This orientation of the XYZ axes will be imported and used directly with After
Effects later. In our example, we created three instances of the locator by duplicating the first one by typing the CTRL-D keyboard equivalent in Windows.

2. Name Your Locator Correctly
In order for After Effects to read the information properly, it is important to conform to the following naming convention:

null_XXXX; where XXXX can be any text or numbers.

For example, some valid names are null_object23, null_strawberryjam, null_trythisout. Each of these has the correct prefix. Some invalid names (ie, ones that can't be read by After Effects) would be nullthingy03 (no underscore character) or meteorfrag6 (no null_prefix).

In our basic scene, we simply placed the three locators in the 3D space. But, you have the potential to change the orientation of the axes of the locators, rotate them, or position them as you wish. The eventual choices are up to you. Use the Outliner Box to change the name of the locators to valid names that you understand.


3. Create the Camera
Go to Create>Camera, or click on the Camera icon on the Shelf. As you move your camera, be aware that the properties you key in the Channels Box will be the only things that are keyframed within After Effects.

Take a good look at your locators; notice how they show the alignment of their own XYZ axes within the World View. These locators are going to be considered as NullObjects in this tutorial, since when you import them into After Effects, you will replace these NullObjects with graphic elements of your choosing... video layers, still images, precomps, etc. Set your camera path to animate using these NullObject positions as reference markers for now.


4. Bake the Simulation
Once you have the Camera selected, go to Edit>Keys>Bake Simulation. You must do this or AE won't read the file correctly! AE does not read information from the Perspective View, so Baking the Simulation is the only way to get After Effects to read this scene info directly.


5. Set the Composition Size
Go to Window>Rendering Editor>Render Globals to set the resolution. It is critical to match the comp size here before you migrate into After Effects. This will save a lot of grief later!

Under the Resolution Tab, set the Width & Height to match up to what you want to work with inside After Effects. If you do not do this, then you may face all sorts of size and aspect ration problems, since your Maya file may not match to anything you require within After Effects. As long as you plan ahead, you can streamline this process greatly.


6. Save the 3D Scene
Save the scene file as a *.ma file. Now you are ready to bring it into After Effects.



---Things You Do in After Effects---


OK, now that you have your scene saved in Maya, you can start to think about bringing it inside After Effects. Here are some things to watch out for...

  • this is not perfect. There are some problems that pop up during import, that at times cannot be explained, at least not by us. Don't send hate mail. We get confused too. -with large scene files, After Effects can really bog down. Slow down and wait for it to catch up to you on import... remember that After Effects is processing a huge amount of data, so this is not like a standard 2D file import. If you encounter some of these problems, you may be working on a machine that cannot adequately handle the data load, since this import is a very highly memory and processor intensive task.
  • save often. It's not only smart, but it makes sense not to lose track after all this effort!

1. Import As Comp
Begin by starting After Effects 5.5, and creating a new Project (File>New Project).
Locate the *.ma Maya file, and import it as a Composition. -from time to time, this may not work... a work-around is to physically drag it from the desktop to the Project Window. Under the Resolution Tab, set the Width & Height to match up to what you want to work with inside After Effects. If you do not do this, then you may face all sorts of size and aspect ratio problems, since your Maya file may not match to anything you require within After Effects. As long as you plan ahead, you can streamline this process greatly.


In our sample, we've included three sample files (JPGs of the letters A, B and C). Go ahead and replace the three NullObject layers that you have in the Composition with these sample files.

To do this, highlight the Timeline Window, and select the NullObject layer you want to replace. Then go to the Project Window and hold down ALT and then drag the desired footage onto the Timeline Window layer you want to replace (for Mac users, Option-DRAG) and replace the three NullObject layers with the A, B and C sample .JPGs.


2. Change the Anchor Point Locations
Once you replace the three NullObject layers with the sample files, you will notice that the Anchor Point axes are now located at the top left corner of these image planes. Hmmm, this is going to get confusing! A simple solution to this will be to adjust the center coordinates of the image plane to match to the location of the Anchor Points, since the Anchor Point position will not change. Here goes...

  • select all three layers with the sample images so they are highlighted in the Timeline Window.
  • type the letter “A” on the keyboard to toggle the Anchor Point Property for all three layers. Move the Anchor Points so that they align to the center of the layer objects. If all your layers are different sizes, then of course you'd need to do this one layer at a time.


Since you can get the file dimensions from the information in the ProjectWindow, you can easily calculate the layer's center coordinates (ie, half the height and half the width) to get the pixel values for center. Type this into the Value for each of the layers you are working with. Since all three layers are the same dimensions in our example file, you can do this step all at once for all three selected layers.


3. So, Why Can't I See Anything?
The simple reason, although we certainly don't claim to know why it is set this way, is that the Transparency is set to ZERO by default.

  • since all layers in the Timeline Window are selected, type the letter “T” to toggle the Opacity (Transparency) Properties.
  • set the Opacity value to 100% and bingo -- there are your layers in the Comp Window!





4. Season to Taste
Now that you can see what is going on, you can Preview your composition by hitting the Zero key on the numeric keypad, up to the limits of available memory. Remember that you can reduce the resolution and comp size in the Composition Window if you are running low on memory.

Try these basic ideas:

  • use Blending Modes to make the layers interact as the After Effects camera moves through the Composition.
  • if the layers are still too big, scale to size.
  • change the position of the NullObjects to fit the new scene. Remember that the Camera info is there... but where you place objects and layers in relation to what the Camera is doing is up to you. Have fun!

A copy of the final After Effects animation can be viewed here.

---Who We Are---


René de la Fuente and Will Scates are part of a design collective known as The Cellar Door Experiment, specializing in postfx clean-up, compositing and 3D animation here in Phoenix, Arizona. If you have questions, you can reach us at info@thecellardoorexperiment.com. We will do our best to answer all your emails as promptly as possible.

Will Scates
Will Scates
René de la Fuente
René de la Fuente

---Will Scates, René de la Fuente


Please discuss question regarding this tutorial in either the Maya forum or the After Effects forum at CreativeCow.net.



Please visit our forums and view other articles at CreativeCOW.net if you found this page from a direct link.


  View 1 Comment(s)

  Adobe After Effects basics Tutorials   •   Adobe After Effects basics Forum
Reply   Like  
+1
Comments

Is there an updated version for
by Timothy Gregory
Is there an updated version for this i dont think it works in maya 2009


Related Articles / Tutorials:
Adobe After Effects basics
AE Basics 34: Font Selection and Faux Options

AE Basics 34: Font Selection and Faux Options
  Play Video
AE Basics - A Creative COW series for new users of Adobe After Effects. Lesson 34: In this tutorial, Andrew Devis shows how to quickly select and change your font selection and modify its look and feel with the Faux options in the character panel.

Tutorial, Video Tutorial
Adobe After Effects basics
AE Basics 33: Options for Creating Text

AE Basics 33: Options for Creating Text
  Play Video
AE Basics - A Creative COW series for new users of Adobe After Effects. Lesson 33: In this tutorial, Andrew Devis starts to look at text creation and animation in After Effects starting with the different ways to create text in the composition panel.

Tutorial, Video Tutorial
Adobe After Effects basics
AE Basics 32: Creating a Motion Background with Shapes Layers

AE Basics 32: Creating a Motion Background with Shapes Layers
  Play Video
AE Basics - A Creative COW series for new users of Adobe After Effects. Lesson 32: In this tutorial Andrew Devis takes some of what has been learnt over the previous AE Basics tutorials on shape layers and puts them together to create a motion background for text. In this tutorial Andrew covers shape creation, shape duplication, working with multiple shape layers at a time, pre-composing multiple shape layers etc. Andrew also introduces "Adjustment Layers" to create a blurred vignette and to use as a color adjustment layer while showing how to move between comps to get the best possible look.

Tutorial, Video Tutorial
Adobe After Effects basics
AE Basics 31: Brainstorm & Shape Layers

AE Basics 31: Brainstorm & Shape Layers
  Play Video
AE Basics - A Creative COW series for new users of Adobe After Effects. Lesson 31: In this tutorial, Andrew Devis demonstrates the "Brainstorm" function with shape layers. The "Brainstorm" function is a tool to give creative ideas based on your own selection of properties to be randomized for creative effect. As long as you select more than one property you can get a stream of creative ideas through Brainstorm that will fuel your imagination and help in the creative process.

Tutorial, Video Tutorial
Adobe After Effects basics
AE Basics 30: The Write-on Effect

AE Basics 30: The Write-on Effect
  Play Video
AE Basics - A Creative COW series for new users of Adobe After Effects. Lesson 30: In this tutorial, Andrew Devis demonstrates the "Write-on" Effect in After Effects showing how it works and how paths created in After Effects and other programs can be used to create higher quality animations with the "Write-on" effects than might be produced by simply animating the various properties of the effect. Although not strictly one of the shape layer series, this tutorial does follow on from the previous tutorial looking at creating true spirals in After Effects.

Tutorial, Video Tutorial
Adobe After Effects basics
AE Basics 29: Shape Layers Part 13 - Creating a True Spiral Using Illustrator Paths

AE Basics 29: Shape Layers Part 13 - Creating a True Spiral Using Illustrator Paths
  Play Video
AE Basics - A Creative COW series for new users of Adobe After Effects. Lesson 29: In this thirteenth tutorial looking at Shape Layers in After Effects, Andrew Devis looks at the problem of creating and animating a true spiral in After Effects and how it can be done by using paths copied from Illustrator.

Tutorial, Video Tutorial
Adobe After Effects basics
AE Basics 28: Shape Layers Part 12 - The Zig Zag Operand

AE Basics 28: Shape Layers Part 12 - The Zig Zag Operand
  Play Video
AE Basics - A Creative COW series for new users of Adobe After Effects. Lesson 28: In the twelfth tutorial looking at Shape Layers in After Effects, Andrew Devis explains the Zig Zag operand.

Tutorial, Video Tutorial
Adobe After Effects basics
AE Basics 27: Shape Layers Part 11 - Wiggle Transform

AE Basics 27: Shape Layers Part 11 - Wiggle Transform
  Play Video
AE Basics - A Creative COW series for new users of Adobe After Effects. Lesson 27: In the eleventh tutorial looking at Shape Layers in After Effects, Andrew Devis demonstrates the Wiggle Transform operand.

Tutorial, Video Tutorial
Adobe After Effects basics
AE Basics 26: Shape Layers Part 10 - Twist & Wiggle Paths

AE Basics 26: Shape Layers Part 10 - Twist & Wiggle Paths
  Play Video
AE Basics - A Creative COW series for new users of Adobe After Effects. Lesson 26: In the tenth tutorial looking specifically at Shape Layers in After Effects, Andrew Devis demonstrates the Twist & Wiggle Paths operands.

Tutorial, Video Tutorial
Adobe After Effects basics
AE Basics 25: Shape Layers Part 9 - Trim Paths

AE Basics 25: Shape Layers Part 9 - Trim Paths
  Play Video
AE Basics - A Creative COW series for new users of Adobe After Effects. Lesson 25: In the ninth tutorial looking at Shape Layers in After Effects, Andrew Devis surveys the Trim Paths operand.

Tutorial, Video Tutorial
MORE


FORUMSTUTORIALSMAGAZINESTOCKYARDVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2012 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]