Reusable function/expression in fusion?

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

dilbert99

  • Posts: 11
  • Joined: Sun May 31, 2020 10:17 am
  • Real Name: David Smith

Reusable function/expression in fusion?

PostWed Jul 21, 2021 2:08 pm

Hi,

Is it possible to create a reusable function/expression in fusion?

The aim is creating a set of vertical bars on a bar chart, so vertical axis might be 100.
The idea was to create a Custom Tool "Bar1Value" that held the bars value so say a bar at half height was 50
and if I could create a function that could be stored in say something like a custom tool "BarFunction" to calculate its sRectangle height. e.g. calc_height(b) = log(b,10) thats not the actual function but just an exampls.

Then I could set the sRectangle1 height expression to be BarFunction.calc_height(Bar1Value.NumberIn1)
then I could duplicate the bars and change Bar1Value to Bar2Value and so on.
This would save me from pasting a complex function into the expression of sRectangle1.height

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], Dustin Bowser, jamedia, Nick2021, panos_mts and 351 guests