When creating a scene, rigging a character or once your animation is finished, you can add effects such as blurs, glows, shadows, colour filters and transparency filters and to enhance your project's quality. Effects change the way layers or groups of layers are rendered in your scene.
Effects are special types of nodes that you can add to your scene's structure. For an effect node to work, it must be connected under a drawing, a composite, another effect, or any other node that outputs an image. Effect nodes alter the image information sent to their input port, and output the processed image through their output port. This gives you flexibility in deciding which elements of your scene are affected by an effect.
Some effects need to be linked to another layer, referred to as a matte layer, which is used to define the area they should affect.
A matte layer is simply a regular drawing layer that is connected to an effect as its matte. The effect takes the shape of the drawing in the matte layer, ignoring its colours and details, to determine the area of the image to affect.
In the Node view, an effect must be connected to the drawing or composite it is meant to affect by its input (top) port, and its output (bottom) port must be connected to the composite. Most effects that require a matte must be connected to their drawing layer by their right input port, and to their matte layer by their left input port, like this:
Once your effect is connected, you can adjust its parameters using the Layer Properties view. If desired, you can even animate the parameters of your effect by converting their values to functions.
Adding an Effect
In Harmony, you can add effects by dragging them from the Node Library view to the Node view and connecting them as an intermediary between their drawing layer and their composite. Then, you can achieve the intended effect by adjusting its parameters in the Layers Properties view, and connecting it to a matte or other types of input layers it might require.
To add effects or other types of nodes to the Node view, you must first find them in the Node Library view.
When you create a new project in Harmony, the default node system that appears in the Node view looks similar to the one below.
Notice how layers are connected to your scene's composite. For an effect to work, it must be connected as an intermediary between a layer and its composite, as if it was made to filter the layer's drawing information before it reaches the composite.
- In the Node Library view, select an effect and drag it to the Node view. You can use the Search toolbar to find nodes quicker.
- In the Node view, click on the input or output port of a node and drag out a cable.
- Connect the cable to the output port or input port of another node.
- To connect a node between two connected nodes, use the Alt key as you drag the new node over the existing cable connection. Use the same Alt key to disconnect a node.
- To remove a node, select and press Del to remove it from the Node view.
Adding an Effect with a Matte
The following tutorial demonstrates how to use the Cutter effect with a matte. Several effects in Harmony use mattes to determine the area of the image they affect.
The Cutter effect cuts out a portion of an image. To do this, it needs to be connected to the drawing it is intended to cut as well as to a matte layer. The cutter will take the shape of the drawing in the matte layer and cut this shape out of the drawing layer. This is especially useful if you want to make a character disappear between a background element, or if you want to cut out a hole in the middle of a character.
Like all effects that use a matte, the Cutter's effect has an Inverted parameter, which is disabled by default. When enabled, the Cutter will have the reverse effect: Instead of cutting the matte's shape out of the drawing, it will cut everything outside of the matte's shape out of the drawing, leaving only the parts of the drawing that are covered by the matte.
You can quickly toggle an effect's Inverted parameter by double-clicking on its Matte icon in the Node view.
- Select a drawing layer and do one of the following:
- From the Node Library view, select the Cutter effect and drag it to the Node view.
- In the Node view, right-click and select Insert > Combine > Cutter.
- Connect the Cutter node between the Drawing and Composite nodes.
- In the Timeline view, create a new layer, which will be used as your Cutter effect's Matte layer.
- In your new Matte layer, draw the shape that you want to cut out from your drawing layer.
- Connect the Matte drawing to the Cutter node's matte port, on the left.
- If you want to invert the Cutter's effect, double-click on the Cutter node's Matte icon to toggle its Inverted parameter.
Two other examples of effects that work with mattes are the Tone and Highlight effects. The Tone effect applies a shadow to its drawing based on its matte, and the Highlight effect applies a highlight to a drawing based on a matte. These effects are not applied outside of the drawings they are connected to, so you can simply draw your character's highlights and shadow into your matte layers without worrying about drawing outside of their outline.
Adding these effects to a drawing works exactly the same way as adding a cutter to a drawing, except that they have extra parameters to configure the colour, intensity and rendering of the effect.
In some cases, you may want to have the intensity, color, or another parameter of an effect animated. For example, you may want an object to fade in or out. To do this, you would connect it to a Transparency effect, and make the effect's transparency level animated so that it increases or decreases as your scene plays. You can animate an effect's parameter by creating a function curve for that parameter. You can then add keyframes to the function and set them to different values, hence making your effect's parameter change value progressively as your scene plays. To create a function for an effect's parameter, you will need to use the Layer Properties view.
- Add an effect node to the Node view by doing one of the following:
- Right-click in the Node view and select Insert > effect.
- Drag a node from the Node Library view to the Node view.
- Connect the effect between the drawing element on which you want to apply the effect and a composite node. You can do this by manually unplugging your existing connections and creating the right connections, or you can simply hold Alt as you drag your effect node over the connection between the drawing and the composite to automatically insert it in the connection.
The effect also appears in the Timeline view.
- Create the function curve by doing one of the following:
- Double-click on the effect layer to display the effect properties. Click the Function button of the parameter you want to animate and create a function curve.
- In the Timeline view, expand the effect layer's parameters by clicking the Collapse/Expand button. Then click the Function button of the parameter you want to animate and create a function curve.
- In the Timeline view, go to the frame on which you want to start animating the effect.
- In the Timeline toolbar, add a keyframe to your function by doing one of the following:
- In the Timeline toolbar, click the Add Keyframe button.
- Right-click and select Add Keyframe.
- Press F6.
- In the Value field of the parameter you want to animate, enter the value you want your parameter to have at this keyframe.
- Repeat these steps until your effect's animation is complete.
Creating an Effect Based on an Animated Character
The following tutorial demonstrates how to combine Effects with other Harmony functionalities to easily create a drop shadow for an animated character. By following these steps, you can create a drop shadow that will automatically follow your character's animation, even if you change the animation afterward.
- In the Node view, make sure your character's rig is in a group with a composite. If it is not, select all the nodes making your character's right, and do one of the following:
- Right-click on the selection, then select Group > Group Selection with Composite.
- Open the Node view menu, then select Nodes > Group Selection with Composite.
- Press Ctrl + Shift + G (Windows/Linux) or ⌘ + Shift + G (macOS).
- Using the Node library, add a Peg, an Apply-Peg-Transformation, and a Shadow node to your network.
- Create a new connection going from your character rig's output port to the Apply-Peg-Transformation node's Image input (rightmost) port.
- Connect your new peg to your Apply-Peg-Transformation's Transformation Input (leftmost) port.
- Connect your Apply-Peg-Transformation's output port to the Shadow node's input port.
- Connect your Shadow node's output port to your scene's composite, right of your character.
- Select the Apply-Peg-Transformation's Peg node.
- In the Tools toolbar, select the Transform tool.
- In the Camera view, scale and skew your clone so that it looks like a drop-shadow.