r/davinciresolve • • 7d ago

Solved Looking for a fusion node that creates a repeated transform movement, or something equivalent to it

I'm putting a fusion clip together and I have a mask node that needs to sweep across the screen from the left to the right at set intervals.

I know this can be achieved using a transform node and some keyframes, but putting keyframes in for every time it starts, stops, and resets a sweep feels inefficient, and having to move every key frame and add more whenever I want to adjust the frequency of the sweep is a pain.

Is there some sort of parametric sweep node where I can set a direction, start, finish, and interval to generate a transform?

Thanks

2 Upvotes

13 comments sorted by

1

u/Squa1l0g 6d ago

Thanks for all the solutions guys much appreciated

1

u/owl_jones Tool/Dev 7d ago

Add a Transform node after your mask.

In the Inspector, right-click the Center X parameter and choose Expression.

Enter an expression like this:

0.1 + (0.9 - 0.1) * math.min((time % 100) / 40, 1)

1

u/Squa1l0g 6d ago

I never even knew expressions were a thing in DaVinci

1

u/owl_jones Tool/Dev 6d ago

this is only the beginning 😎

2

u/AlfredoOtero 7d ago

You can rely on the custom tool to create calculated and controlled actions. I did a POC a while back on something that required timing and the control tool is perfect for that.

Blackmagic Design Davinci Fusion - Tutorial using the trails node
https://youtu.be/cxLKjHf6B3k

Cheers 😀

2

u/PrimevilKneivel Studio | Enterprise 7d ago

The custom tool is always the wrong choice if there’s a simpler way to achieve your goal. The custom tool eats a huge amount of processing and will slow down your comp, especially if you rely on it a lot.

I’ve worked at studios where we had to block any comps from rendering on the farm if they contained a custom tool because they eat too many render nodes and take forever to finish.

1

u/AutoModerator 7d ago

Welcome to r/davinciresolve! If you're brand new to Resolve, please make sure to check out the free official training, the subreddit's wiki and our weekly FAQ Fridays. Your question may have already been answered.

Please check to make sure you've included the following information. Edit your post (or leave a top-level comment) if you haven't included this information.

Once your question has been answered, change the flair to "Solved" so other people can reference the thread if they've got similar issues.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/MINIPRO27YT 7d ago

There's a loop keyframe option I'd just do that for 0-100-0

1

u/FusionAddiction 7d ago

you can use loop or duplicate keyframes... loop is for ever, duplicate is for a limited number of times

1

u/Milan_Bus4168 7d ago

Spline and keyframe editor have all the controls you would need, and if you want you can also use modifiers and expressions. Efficiency lies in knowlage of the tools you have.

1

u/lawdreekus Studio 7d ago

If I understand what you want, couldn’t you just put a stop motion node in front of your transform node?

1

u/Weird_Boss1 6d ago

You can use the spline. Create your curve, then keyframe once more at the end of your motion to creat a "hold" keyframe. It's called step in I believe. 

That'll keep the motion locked where it ended basically, until you create the next motion. 

You can then add either "ping pong or loop" from the spline right click menu. Whichever way you want it to sweep.

 And you can adjust with the shape box to get the timing you want across loops.

1

u/alpiasker 7d ago

It's great to see someone still trying to learn something manual and asking about it and people are trying to help in the comments. In the age of ai that is priceless