Being able to use ready-made transition is really handy. You drag, drop, customize a little and you're good to go. Like the customizable transition that
we offered you in the previous video. But sometime, You will need a specially tailored
transition for a particular job and building your Fusion skills
will let you do amazing things. In this video, we will show you how to create
your own swipe transition using anim curves instead of keyframes. let's get started As usual, we really want to thank everyone
that have been joining the channel. You guys are amazing! And if you haven't subscribed already...
Think about doing so. The transition that we're going to build together is a slightly simplified version of our dope swipe. And, while not as feature rich,
it will offer you a really robust base to build your own design and extend its features. More important, what you will learn in this video
will give you so many tools and will make you much more confident
about creating effects in Fusion. we will also make this transition available
as a polished and easy to edit template for our Buy me a coffee members,
to thank you for your support. Now, let's jump into DaVinci Resolve. Let's right click in the Media Pool. Create a new Fusion composition that
I'm going to name Swipe & Slide. Create Double click to jump into Fusion. So we have one MediaOut As usual, I'm using a vertical layout
and if you want to do the same, Go to workspace Layout Presets Fusion Presets And you can use the Left or Mid Flow. Let's start by adding two Background nodes. One for the background, one for the foreground. Those are just placeholders and
won't be saved in our final template. But, they will make working on
this transition much easier. We'll also add two Merge nodes. One for the input and one for the output. Click twice on the Background icon
and once on the merge one. This will add a total of four nodes, automatically connecting them and
building the base for us to build on. I'm gonna arrange them and
connect to the Media Output. Let's clean up the space. I'm going to change the color for each
background for something contrasting. That's going to be the background and that's going to be our foreground. we are also going to rename each node to
have a clear view on what they are for. So type [F2] Rename This one is the background, simple. and the second one, [F2] Foreground This will be our Merge input So I'm gonna name it "Input". And this merge would be our "Output". This will make the step of exporting
as a template much easier later on. Next, we will start building the
banner that will slide over our clips and for this we are going
to use the rectangle tool. Click into an empty space to make sure that
nothing is selected and click on the Rectangle icon. Let's give it a Width of 1. Slightly raise the height and set the angle to 60 degrees. To give it some substance, we
need to connect it to a background. Click and drag the Background
icon to the nodes window. Connect the Rectangle to it and drag the Background node
to the viewer so you can see it. Change the background color for anything that you like but for in this case i'm going to keep it white. For better control and flexibility, we
won't be animating directly the banner but rather use a Transform tool to do the job. Make sure that the Background is selected. Click on the Transform icon. Add another Merge node and connect
the Merge to the Output foreground. You can now drag the Output Merge node
to the viewer so you can see everything. Something very important that I want to mention. In Fusion you can use the Dissolve tool
to help you create some awesome effects Including swipe transitions. Why we're not using it here? It is because we want to create
something a bit more intricate and want absolute control on it. And the skills that you're going to develop
will help you to do so many things in Fusion. I'm going to keep my nodes clean and rename them. This is going to be the banner. This is going to be the banner background. And this one will be the banner transform. And the merge... We don't care! If you want your transition to work
with any kind of framerate, do not use keyframes for your animations. We will instead use anim curves so
we can make them scale properly. To animate the banner, I'm going
to select the Transform node and what you would do usually
to create an anim curve is right click on a control Choose Modify With Anim Curves Super simple. But look what's happening if I try
to animate the center control to make the banner pan on the x-axis. I'm going to right-click. Choose Modify With. And there is no Anim Curve option. This will happen with any kind of control
that is returning more than one value. Like here where we have values
for the x and the y axis. This is because the anim curve
can only take one value as an input and we somehow need to
find a way to split them up. It's actually quite simple if you know how to
create custom controls and expressions. To create a custom control,
right click on the transform tool and choose Edit Controls. Few words of caution. To this date, the only way
to remove a custom control is either to delete the node completely
or to edit it in a text editor. So you might want to take your time
and make sure you follow step by step. Create a new control named "xTransform" Select Number for type. Page: Controls For the Input Ctrl: ScrewControl And press ok If you made any mistake like picking
the wrong control input or page You can easily correct this by right clicking Going back to edit controls In the list scroll down to
find your custom control. Select it, change whatever
you need and press ok. Right click on center. Choose expression And for the (x) value, select it
and type "xTransform". This will link the x-axis to
our newly created control. Now we can right-click on xTransform, choose modify with and select Anim Curves. We have now access to a Modifiers tab full of controls and presets where we can
adjust every aspect of the anim curve. Remember that the banner is
supposed to slide both ways so rather than using one of
those presets or the mirror option we'll go full control and create
our own custom anim curve. For the curve, select custom. And the graph we have here
represents the animation. And in our case will go from left to right. Scaling is going to define the range of
motion of whatever you're animating. With Offset and Scale we can adjust from
where and up to where the banner will slide. Timing, well it's the timing of your animation. With Time Scale, you can choose
how fast the animation will go and the Time Offset will let you induce a delay. And because we want the transition to
go from left to right and then right to left, we'll grab the point up there and bring it down. We now create and place two new points to
define the different steps of our animation. We have the banner moving left to right. Waiting... And then going back right to left. To add some easing to the animation, select the point and grab the
handle to add some curve. Here Aa bit on the bottom. Slightly Okay, we will adjust that later. I'm going to zoom out to
clearly see the whole scene and in offset, I'll drag slightly to the left, just enough for the banner to exit the view. Play through the clip to the moment
where the banner is stopping and here in scale, drag to the right and place it wherever you want. I'm going to select the banner
and move it slightly on the y-axis because I would like the corner to be visible. I'll go back to the Transform
node and adjust the scale. Let's see how it's playing. Very good! Make sure that nothing is sticking out. Next, we add the text. I'm going to select my nodes and
rearrange them to make some space. Drag the text icon into the nodes window. Click on the Transform icon. Rearange them and connect
it to the merge foreground. As we did for the banner, we will use
the Transform node to animate the text. Let's rename our text. And the transfer node. With the Transform node selected,
in the inspector right click on angle. Choose expression and as the value type: "Banner.Angle". You can see that the Transform is
now matching the banner angle so if you decide to modify the angle
for the banner the text will follow. We're going to create the exact same custom
control as for the banner transform node. Right click on the Transform node Select Edit Controls Rename it "xTransform" Type: Number Page: Controls Input Ctrl: ScrewControl Press OK Right click on Center Select Expression Highlight the x-value and type "xTransform". And now we're going to connect this controller to the Anim curve that we created
previously for the banner Transform. Right click on xTransform Select Connect to Anim Curves on BannerTR Select the value. As you can see the text transform tool
is now matching the one for the banner and it's not exactly what we want. It won't be an issue because we'll
be modifying this in the text node. Type your text Move it so you can see it. and format to your liking. We can now easily add a lower text or even a
logo and everything will animate automatically because everything is passing
through the same transform node. We're going to duplicate this text. Select, [Ctrl] + [C] and [Ctrl] + [V] I'm gonna clean up a little bit
and rename this to "TopText" and the second one to "LowerText". I'm going to move it Change its color Let's check our animation. And as you can see everything connected
is now animating automatically. Maybe the most important part
of this transition is to create a mask that will actually do the
transition between both clips. and for this we're going
to use the Rectangle tool. Let's make some space I'm gonna drag this. Click and drag the Rectangle icon
and connect it to the input mask. I'm going to rename it as "Mask" and resize it, 1.6 and 3.2. Okay we're going to make it quite large. If you zoom out you can see clearly. And we're going to create an expression
on the angle to connect it to the banner. So right click on Angle Expression and as value, as before,
we're typing "Banner.Angle". Do you remember the two custom
controls that we created before? Guess what? We're going to
create a third one, the exact same. Right click on the mask. Select Edit Controls. As a name, as before, "xTransform" Type: Number Page: Controls Screw Controls as Input Ctrl And we press OK. Right click on Center. Create a new Expression. Select the x-value Type "xTransform" [Enter] As before the x-axis is now
connected to the new control. Right click on the new control. Modify With and this time we're
going to create its own Anim curves. Go to the Modifiers For Curve,
Custom Curve. Because the mask will only
go from the left to the right, we just need the curve to go
upward from this point to this one and we add only one point
to match the animation curve. This is going to take some time to
make it match the Banner anim curve and to make it easier,
I'm going to pin this one. Go to the banner transform and pin it as well. And this way, we can see both the anim
curves and easily adjust them together. Let's set the playhead to the beginning. We can clearly see that the mask
needs to be offset to the left and that it's actually too low. I'm going back to my tools and here we're going to change the Width to make sure that's covering the whole area. Going back to modifiers and I'm going to change my offset. If you are using the Speed Editor or
any other equipped with a jog dial it's going to be really fast going
through and matching your clip. Otherwise I recommend using the
trusted [J], [K] and [L] keyboard keys to go through your clip. [J] to go backward [K] to stop [L] to go forward. We're gonna go slowly though the clip and make sure that the mask
is going at the right place So I can see here when the banner is stopping that the mask doesn't go further. So we're gonna need to raise the scale. Make sure that it's covering the whole area. I'm gonna bring the offset a bit lower as well. Let's see... Okay, now we need to adjust the curve. So every time you see that
the mask is sticking out, you adjust your curve accordingly. So at the beginning, we're gonna need to add some
ease to make it go slower. Okay We're gonna go slowly through the clip. Now we need it to go a bit faster Okay Not bad, not bad...
That's getting a bit too close. So we're going to drag
this point to the right. Okay A bit more and a bit more We're going to play the clip a few times to make sure that the banner
is properly covering the mask. Okay This one is good. Perfect! Now that this is done, I can unpin
those tools from the inspector. Next step is optional, but it is one that will make
the transition look really good. We are going to add a
Drop Shadow to the banner to make it look like it is
floating above our clips. Select this Merge node Type [Ctrl] + [Space] or [Shift] + [Space]
depending if you're on PC or Mac. Type "Drop" [Enter] And here, you just need to adjust
the shadow parameters to your liking. I'm going to lower the Shadow Strength to 0.3 The Drop Angle to 90 degrees The drop distance to 0.05 and the blur to 0.2 Now let's check how it looks on a real clip. Finally you might want to make
a template out of this design so you can use it and
customize it in the Edit page. If you are not familiar with
how to create a macro template, We have a dedicated video that will
walk you through the whole process. Before creating a template,
I'm going to rearrange my nodes. Just move them around and make sure
that the view is as efficient as possible. Select all your nodes except the two
backgrounds and the Media Output. Right click Macro Create Macro Let's move the window. I am not going to go over the specifics because we have a video dedicated
to how to make this macro template. But you have to select every parameters that you want to be able to
customize in the Edit page. Just make sure that your Input node has
both Background and Foreground selected. And your Output node has Output selected. Give it a name. Click file Select Save As Group to be able to modify
it in Fusion after applying the transition. In the Fusion folder, select Template
rather than the Macro one, to be able to see it in the Edit page. Select the Edit folder Transitions and Save. This way after restarting DaVinci Resolve you will be able to apply the
transition right from the edit page. If you enjoyed this video, leave a thumbs up! and make sure to check our playlist
about VFX and DaVinci Resolve. And we'll see you, in the next video. See ya!