API Guide > Writing a Deformer Node >

# Ordering the Deformers

The order in which the deformers are added to an object affects how they work in a scene because each deformer takes the output of the previous deformer as its input. The following example shows the affect of ordering the deformers.

1. Take a model of a giant.
2. Add a sine wave nonlinear deformer and then add a cluster deformer.
3. Select the cluster and translate the cluster up in the Y axis. The giant in its sine wave position gets translated upwards by the cluster node because the cluster is after the sine wave.
4. Reorder the cluster so that it is ahead of the sine wave node in the dependency graph. Now, if the cluster is translated upwards, it moves the top half of the giant out of the region of influence of the sine wave deformer and as you move the cluster up and down, you can control which regions of the giant are deformed by the sine wave.

The following figure illustrates this example. The initial state is shown on the left, sine followed by the translated cluster is shown in the middle, and the translated cluster followed by the sine is shown on the right.