(11 ratings)   
By: Nimble Studios Inc.
The Uninstancer allows you to bake particle instances into geometry, animation, and blendshapes that can be modified and updated without messing around with dynamics and expressions.
Added: 11 June 2008    Views: 280  
PathComputers    3D Graphics    Maya
Keywords: computers   maya   graphics   nimble   object   render  
Do you like this tutorial? Now you can support our team to add more :     
 
 
 

Available for:
-Windows Maya 7.0
-Window Maya 8.0
-Windows Maya 8.5
-Linux Maya 7.0
-Linux Maya 8.0
-Linux Maya 8.5


Part of: NimbleTools 1.1 (download latest version at the bottom; for other versions, check out the Downloads Plugins section).

3d graphics

Overview

The Uninstancer allows you to bake particle instances into geometry, animation, and blendshapes that can be modified and updated without messing around with dynamics and expressions.


Installing

Windows
Double-click the Windows Installer (NimbleTools.msi) to start the installation and then follow the instructions in the dialogs to complete the installation.

Linux
1. Extract NimbleTools_m85.tgz to the directory of your choice
2. Open NimbleTools.txt in a text editor and change the file path to point the NimbleTools directory.

Ex:
If /opt/NimbleTools contains the extracted icons/, plug-ins/, and scripts/ directories, edit NimbleTools.txt to look like:

3d graphics

3. As root copy NimbleTools.txt into the modules/ directory in your Maya installation. By default this is:

Maya 7.0: /usr/aw/maya7.0/modules
Maya 8.0: /usr/aw/maya8.0/modules
Maya 8.5: /usr/autodesk/maya8.5/modules/


If the modules/ directory does not exist, create it.



Note:

For each version of Maya you install NimbleTools for, extract the appropriate NimbleTools package to a different location, and copy the respective NimbleTools.txt files to the modules/ directories in the appropriate Maya installation.


Loading

It's a good idea to restart Maya after installing Nimble Tools - this is to ensure that all of the newly added scripts are correctly picked up and registered.

To load Nimble Tools and get moving open the Plug-in Manager found under Settings/Preferences:

3d graphics

Scroll down through the list of plugins until you find an entry for Nimble Tools, check the “loaded” check box to load the plugin:

3d graphics

Optionally you can also check the “auto load” checkbox to have Nimble Tools automatically loaded whenever Maya launches.

Uninstalling

You have two options for uninstalling Nimble Tools:

1. Launch the Nimble Tools installer (NimbleTools.msi), and select “Remove” when prompted:

3d graphics

2. Run the “Add/Remove Programs” utility found in Windows’ Control Panel:
3d graphics

3d graphics

Select the Nimble Tools entry and click the Remove button:

3d graphics

UI

Once loaded you should see a new Nimble menu in the main menu bar. And, if you installed the ‘RMB Scripts’ component, an Uninstance menu when your right-click on a instanced particle system.

3d graphics


Uninstancer Options
3d graphics

Bake Type
3d graphics

The Bake Type can be set to either “Geometry” or “Animation".

Geometry: A copy of each instanced particle is made for every frame specified. If a range of frames are specified the Uninstancer will create multiple copies of each instance particle.

Animation: A single copy of each instanced particle is made regardless of how many frames are specified. Instead, for each frame,translate, rotate, scale, and visibility keyframes are set. If Particle Instancer Cycles are used (i.e. several objects are instanced to each particle), the different instanced objects will be baked into a blendshape and the blendshape weight will be keyed to match the cycling of the of the Particle Instancer.

NOTE: In order for the blendshapes to work properly, all of the instanced geometry should have its transformations frozen.


Copy as Instance
3d graphics

Only applicable when Bake Type is set to Geometry.

When enabled each copy of an instanced particle will be made as a DAG Instance (e.g. the “Copy as Instance” option in the Duplicate option box).

Time Range
3d graphics

The Time Range can be set to “Current Frame”, “Timeline”, or “Manual”

Current Frame: Only the current frame is uninstanced. A single copy of each instanced particle will be created, with its translate, rotate, scale, and visibility determined by the current frame of the particle system simulation.

Timeline: The animation timeline will be used to determine the range of frames to uninstance.


Manual: The values set in the Start and End imput fields will be used to determine the range of frames to uninstance.


Frame Step
3d graphics

When uninstancing a particle instancer over a range of frames, the Frame Step specifies how often the instanced particles should be baked. A Frame Step of 1 causes the instanced particles to be baked every frame - when Bake Type is set to Geometry this means a new copy is created every frame, when Bake Type is set to Animation a new keyframe is added every frame. A Frame Step of 2 causes the instanced particle to be baked every other frame, etc...


Example 1: Baking Geometry

In this example instanced particles have been emitted from a surface, giving the appearance of objects scattered over terrain.

3d graphics

Note that the visible trees are all particle instances, and can’t be manipulated as regular objects.

To turn the instanced particles into objects that can be manipulated independently of the particle system:

1. Select the particle instancer (e.g. "instancer1"wink.
2. Open the Uninstancer Options
3. Set the Bake Type to Geometry
4. Set Copy As Instance as desired
5. Set the Time Range to Current Frame
6. Click Uninstance


3d graphics

Now each tree is an independently modifiable object, no longer dependent on the particle system or particle instancer.


Example 2: Baking Animation

In this example an animation of a butterfly flapping its wings has been instanced to a particle system using the standard technique of creating a new object for each frame of the animation. A turbulence field is applied to give the sense of butterflies flitting lazily about.

3d graphics

To turn the instanced particles into animated blendshapes that can be manipulated independently of the particle system:

1. Select the particle instancer (e.g. "instancer1"wink)
2. Open the Uninstancer Options
3. Set the Bake Type to Animation
4. Set the Frame Range to either “Timeline” or “Manual”
5. Set the Frame Step as desired


3d graphics

3d graphics

Each butterfly is now represented by one or more animated blendshapes. The animCurves controlling the switching of blendshape targets, as well as the translation, scale, rotate, and visibility can be modified using standard animation techniques. In this example the Frame Step is set to 1, meaning a keyframe was set for every frame that a particle was alive. If this produces too much animation data, you might try using a larger Frame Step.


Example 3: Baking Geometry Over a Range of Frames

This example is the same as the previous one, but with the maximum number of butterflies set to three to reduce clutter in the example.

3d graphics

Baking geometry over a range of frames can provide help in visualizing the behavior of the particle system over time. To do this:

1. Select the particle instancer (e.g. "instancer1"wink)
2. Open the Uninstancer Options
3. Set the Bake Type to Geometry
4. Set the Frame Range to either “Timeline” or “Manual”
5. Set the Frame Step as desired


3d graphics

Each butterfly is now represented by a series of copies generated by taking “snapshots” of that butterfly over time. In this example the frame step was set to 20 to keep the snapshots from overlapping.


Credits
Many thanks to Seth Hall and ossosso for their invaluable feedback and suggestions.


Related Materials:
NimbleTools 1.1 for Maya 8.5 on Windows

NimbleTools 1.1 for Maya 8.5 on Linux

About the Author :
Uninstancer for Maya
Articles and Tutorials Directory by www.learnfobia.com
 Rate this tutorial : Rate 1Rate 2Rate 3Rate 4Rate 5
  |    Add to Favorites
  |    Send to Friend
  |    Print
Comments