Game Development Reference
Next, I'm going to apply the Wave Warp effect to this layer, and
I'm going to take the Wave Height value to 100. This warps the solid
blue bar a great deal, causing the tops and bottoms of the wave to
go beyond the boundaries of the layer. This results in the pixels
being cut off (Fig. 21.3).
Figure 21.3 After applying the
Wave Warp effect, the bar is
distorted, resulting in lost pixels
because they go beyond the
Enter the Grow Bounds effect. The Grow Bounds effect
extends the boundaries of the layer so that pixels may go
beyond its edges. However, after applying the effect in this
case, nothing appears to happen. In this instance, the problem
is found in the stacking order of the effects. We must drag the
Grow Bounds effect before (i.e., above) the Wave Warp effect in
the stack of effects in the Effect Controls panel. That way, the
layers boundaries can “grow” before they are warped. Increase
the Pixels value to determine how many pixels beyond the
layer's boundaries that pixels are allowed to extend. I took my
Pixels value to 70.
You might be wondering why the Grow Bounds effect is use-
ful, especially when compared with the Collapse Transformations
switch which appears to do the same thing. For starters, Collapse
Transformations doesn't help in situations like those seen in
Fig. 21.4, where the effect causes the pixels on a layer to go
beyond the layer's boundaries. The Grow Bounds effect is use-
ful for working with individual layers not just compositions.
The Pixels parameter allows you precise control over how much
the layer extends beyond its boundaries. And also, Collapse
Transformations also changes blend modes and other properties,
which you might not want changed.