Jump to content


Photo

Ramp Macro

Macros gradient smoothstep

  • Please log in to reply
4 replies to this topic

#1 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 16 January 2012 - 03:19 PM

If you ever wanted to draw a gradient on top of an image but were annoyed that you needed two tools (a BG and a Merge), here's a solution for you.

The macro also allows you to smooth the ramp as well as draw a "perceptively linear" gradient that only looks linear under an sRGB viewer LUT. The smoothing functions are the same as in Nuke: smoothstep (to smooth start and end point) as well as a Catmull-Rom spline to only smooth one end of the ramp.

Ramp_v01-2.setting

Posted Image

Posted Image

#2 bfloch

bfloch

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 960 posts

Posted 16 January 2012 - 04:05 PM

Great work. What is "Draw Inside Alpha Channel" for?

#3 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 16 January 2012 - 04:47 PM

It will merge the gradient "atop" instead of "over". Useful if you want to.. well.. draw the gradient inside the alpha channel :-)

#4 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 21 January 2012 - 07:32 AM

Nice one!

By the way, about gradients, I adore Fusion's capability to draw open double edge masks. It's like creating gradients of any shape:

Posted Image Posted Image

#5 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 21 January 2012 - 04:44 PM

Sweet, I never tried that :-)





Also tagged with one or more of these keywords: Macros, gradient, smoothstep

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users