Random Tricks
How to render “Object ID” in Maya and use it in After Effects?

How to render “Object ID” in Maya and use it in After Effects?

Max users know, there is a very useful “.rpf” file format in 3d Studio Max.

In compositing programs like After Effects, It gives you a control of objects in scene with one file.

Maya doesn’t support for “Object ID” and rpf as Max does, so how can we get same result in Maya?

There are 3-4 tricky ways for that in Maya, but we will learn the best and easiest way like always; “Label ID technique”.

(By the way, the places of commands and menus could be changed in older versions of Maya, but there are, please search it around)

I am going to show an example, you can apply same for your scene.

Firstly, create a new empty scene in Maya,

Create a sphere, a cube and a cylinder as image below,

Select Cube;

In the attribute panel, select [Attributes > Add Attributes...]

Enter “miLabel” as Long name and select [Integer] as Data Type

Repeat this adding attribute steps for sphere and cylinder

When you finished, select cube, in the attribute editor, you will see [Extra Attributes] under “pCube1″ tab

There must be a [Ml Label]  under [Extra Attributes]

for cube, enter “1″

for sphere, enter “2″

for cylinder, enter “3″

In the viewport menu, select “Select Camera”

Select perspShape tab, find [mental ray], under [Output Shaders] select [Create]

Select [Label (integer) 1x32 Bit] from “Frame Buffer Type” menu

Check File Mode, enter your destination and filename to “File Name Postfix” box, ( for example c:\fxfx.iff )

Now select render settings, choose [Mental Ray] as render engine, and in quality tab, select [Production] as “Quality Presets”


Using render in compositing programs like After Effects;

Import your render file (fxfx.iff) to After Effects,

Create a compositing, drag your render .iff file to layer panel, you will see a 3 colored image.

Now, for example you want to control settings of Cube, select the layer, apply “Color Key”, select the yellow color of cylinder, and apply “Color Key” again (or duplicate effect), select green of sphere.

And apply “Color Key” again to remove black around scene.

Now you have only red cube and you can control it as you want.

That’s all folks,

Keep in Fx,

Caner ATAS

About Caneration


  1. Many Thanks, was very helpfull

  2. its not working in the end its not giving colorid image

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>