How to implement an example design control:
1. Create a new composition named DESIGN_CONTROL.
2. Change the color label on the DESIGN_CONTROL composition project footage to “None”.
3. Drag the DESIGN_CONTROL composition into the MAIN_COMP and turn the layer visibility off.
4. Click into the DESIGN_CONTROL composition.
5. Add a new text layer that will be configured as a Conditional Text Layer. This text layer will be used to control other conditional components in the template. Label this text layer green, and give it a self descriptive name - “language”
a. In this example, the design control will be used to toggle between two different conditional language design layouts in the template: English or Arabic, and only one language design will be displayed at one time.
b. On the Conditional Text Layer, apply a layer comment specifying the valid text inputs that will drive the conditional design: valid_inputs=["EN","AR"]
c. Elsewhere in the project, create a text layer that will be displayed only when the conditional text layer is set to “AR”, for Arabic. (This text layer can have a different font, alignment, and sizing than an alternate English text layer). Open the text transforms and find the opacity setting. Alt click the stop watch to apply an expression that will link this layer to the conditional text layer: : if(comp("DESIGN_CONTROL").layer("language").text("Source Text").indexOf("AR") == 0) 100 else 0
d. Create another text layer that will be displayed only when the conditional text layer is set to “EN”, for English. (This text layer can have a different font, alignment, and sizing than the Arabic text layer). Open the text transforms and find the opacity setting. Alt click the stop watch to apply an expression that will link this layer to the conditional text layer: if(comp("DESIGN_CONTROL").layer("language").text("Source Text").indexOf("EN") == 0) 100 else 0
e. Back in the DESIGN_CONTOL composition, the “language” conditional text layer has now been configured to control which language text layer will be displayed in the project. Change the source text of the “language” layer to AR for the Arabic text layer to be displayed, or EN for the English text layer to be displayed.
Here is a video example of using DESIGN_CONTROL to control different layers being turned on and off with a text layer inside of the DESIGN_CONTROL: DESIGN CONTROL EXAMPLE
6. Another option for the DESIGN_CONTROL is to add a Color Control Layer, that will propagate color to linked components. dd an adjustment layer in your DESIGN_CONTROL, and apply the dark green label.
a. Name Color Control Layer based on what it will control.. Example: CTA_text_1_color:
b. With the layer selected, open the Indivio effects and presets panel, and apply the effect named Color Control.
c. Create a solid layer that will have its color controlled by the Color Control Layer. (or locate a previously existing layer that will have its color controlled)
d. With the layer selected, apply the fill effect.
e. Link the layer back to the Color Control Layer via an expression.. he pick-whip can help to simplify this process.
f. Rearrange the windows in After Effects to drag the DESIGN_CONTROL to the left corner.
g. Drag the pick whip from the fill effect color to the color control in the DESIGN_CONTOL.
h. Change the color in the Color Control Layer to confirm that the color propagates to the connected layer with the fill effect. Here is a video example of the process: COLOR CONTROL EXAMPLE
7. Another option in the DESIGN_CONTROL is a Conditional Slider Layer. (Similar to the Conditional Text Layer, but controls other components with a numerical input instead of a text input)
a. Create an adjustment layer inside of the DESIGN_CONTROL, labeling it dark green, and applying a self descriptive name. (“num_reviews” is the layer name in this example)
b. With the layer selected, open the Indivio effects and presets panel, and apply the Slider Control. rearrange the windows in After Effects your workspace by dragging your DESIGN_CONTROL up to the left in order to use the pick-whip.
c. Link the text layer to the Conditional Slider Layer inside of your DESIGN_CONTRO using the pick-whip to create an expression.Alt click on the source text and then drag the pick-whip up to the DESIGN_CONTROL adjustment layer that has the Slider Control on it. It should look like this:
d. Afterwards the layers are linked and the text layer can be controlled by the Conditional Slider Layer.
Here is an example:
f. The opacity of the text layer can be linked to the incoming source text value from the Conditional Slider Layer, so that if the incoming value is “0”, the opacity can also be set to “0” - hiding the text layer. See the “Conditional Text Layer” example of how to implement this expression above.