|
|
Groups and render order for shapes and shape attributesThough the default is for a shape to consist of a single path, a single stroke, and a single fill—arranged from top to bottom in the Timeline panel—much of the power and flexibility of shape layers arises from your ability to add and reorder shape attributes and create more complex compound shapes. You can group shapes or shape attributes that are at the same grouping level within a single shape layer. A group is a collection of shape attributes: paths,
fills, strokes, path operations, and other groups. Each group has
its own blending mode and its own set of transform properties. By
assembling shapes into groups, you can work with multiple shapes
simultaneously—such as scaling all shapes in the group by the same
amount or applying the same stroke to each shape. You can even place individual
shapes or individual shape attributes within their own groups to isolate
transformations. For example, you can scale a path without scaling
its stroke by grouping the path by itself.
![]()
When you add a shape attribute using the Add menu in the Tools panel or Timeline panel, the attribute is added within the group that is selected. You can drag groups and attributes to reorder them in the Timeline panel. By reordering and grouping shapes and shape attributes, you can affect their rendering order with respect to other shapes and shape attributes. Render order for shapes within a shape layerThe rules for rendering a shape layer are similar to the rules for rendering a composition that contains nested compositions:
Path operations and paint operations apply to all paths above them in the same group. Transform properties for shape groups and shape pathsEach group has its own Transform property group. This Transform property group is represented in the Timeline panel with a property group named Transform: [group name] and in the Composition panel as a dashed box with handles. You can group a path by itself and transform only the path using its new Transform property group. Introducing an additional Transform property group for a single path is useful, for example, for creating complex motion—such as spinning about one anchor point while also revolving along an orbit. The transformations of a group affect all shapes within the group; this behavior is the same as the behavior of layer parenting. (See Parent and child layers.) Each shape path also has intrinsic properties that affect the position and shape of the path. For parametric shape paths, these properties (such as Position and Size) are parameters visible in the Timeline panel. For Bezier shape paths, these properties are defined for each vertex but are contained within the Path property. When you modify a Bezier path using the free-transform bounding box, you modify these intrinsic properties for the vertices that constitute that path. (See About shapes and shape layers.) Group shapes or shape attributes Select one or more shapes or shape attributes,
and do one of the following:
When you group shapes, the anchor point for the group is placed in the center of the bounding box for the group. Ungroup shapes or shape attributes Select a single group, and do one of
the following:
Create an empty shape group Choose Group (Empty) from the Add menu
in the Tools panel or in the Timeline panel. |