Referencing assets in a scene

 
 
 

In the previous section you imported a fire truck asset directly into the scene. However, you can also reference assets from other files. File referencing allows you to represent an object from another file in your scene without actually importing that file.

To reference an asset

  1. Select File > Reference Editor.

    The Reference Editor window appears.

  2. In the Reference Editor, select File > Create Reference > .
  3. Select Edit > Reset Settings.
  4. Click Reference.

    A file browser appears.

  5. Navigate to GettingStartedMaya2013LessonData\Assets\assets and select police_car.mb.
  6. Click Reference.

    An entry appears in the Reference Editor. This represents the police car. You can turn the reference on and off by clicking the check box next to the reference name.

Now you can move the police car asset to the appropriate spot in your scene. Up until now, you’ve been using the Outliner to select your containers. However, you can change the selection method so that you can select them in your scene.

To turn on asset centric selection

  1. Select Window > Settings/Preferences > Preferences.

    The Preferences window appears.

  2. Select the Selection section under Settings.
  3. Turn on Asset centric selection.
  4. Click Save.

Now if you click on any part of the police car in the main scene, Maya selects the object’s asset.

Now select the Move Tool and move the police car to the edge of one of the streets in the scene. Using the same procedure outlined above, reference the same police car file 3 more times and arrange the police cars around the scene, but not in the path of the fire truck.

Now you need a reason for all the emergency vehicles crowding around.

To reference a fire asset

  1. In the Reference Editor, select File > Create Reference.
  2. Click Reference.

    A file browser appears.

  3. Navigate to GettingStartedMaya2013LessonData\Assets\assets and select Flames.mb.
  4. Click Reference.
  5. Select Flame_AST in the Outliner.
  6. In the Channel Box, set the Translate values for the Flame_AST node to 400.581, 84.139, -90.849.

Now if you play the scene, the apartment burns before the fire truck arrives.