When you click Extrudalize! button, many things happen in the background, so let’s go through them one by the one.
A. The structure of the selected Shape Layer is modified as follows:
ORIGIN SHAPE
and the visibility of the path is turned off.---EXTRUDALIZER---
shape group is added. This is the container for all the paths that will comprise the Extrudalized shape. It contains a number shape groups needed for the correct functioning of the script.
B. An Extrudalizer
layer controller is added to the Effects group of the layer.
The layer controller has all the animatable controls needed to manipulate and set up the transformation and appearance of the Extrudalized shape. These controls are connected to the expressions used to compute the FRONT
, BACK
and SIDE
shape paths position and appearance in virtual 3D space.
When the Extrudalized shape is manipulated via 3D transforms, the shape’s sides in the SIDES
group retain their names in the order of the vertex numbers of the FRONT
shape, however, their actual paths are recalculated using expression in order of their distance from the viewport and their visibility as a result of the 3D transformations. The sides that are closer to the viewport and are visible are drawn in the paths at the top of the SIDES
shape group stack, while the paths that are not currently visible are at the bottom of the shape group stack.
The Transform properties for the ORIGIN SHAPE
group also affect the Extrudalized shape and are taken into account when calculating the appearance of the Extrudalized shape.
C. A specific text layer is added to the composition.
To avoid needing to re-calculate all the main parameters for all the paths, and to be compatible with Lottie, the major calculations are performed in only one place - the text layer created specifically for that purpose. This text layer is named EXTRUDALIZER DATA layer_name
, where layer_name is the name of the layer that you are Extrudalizing. By default, this layer is locked, shied, and placed at the bottom of the layer stack. It contains the formulas necessary to compute the 3D positions of every single vertex of every face of the Extrudalized shape.
EXTRUDALIZER DATA
Text layer will break the Extrudalized shape except you baked the layer.