Jump to: Board index » General » Fusion

How do you get RGBA values in expressions?

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline

joemart

  • Posts: 96
  • Joined: Wed Apr 14, 2021 3:16 pm
  • Real Name: Joseph Martire

How do you get RGBA values in expressions?

PostTue Oct 04, 2022 3:55 pm

I'm trying to get the RGBA values at the current frame as you would get the current frame values from the "time" variable. After getting these values, I want to use them in an expression with an "if" condition.

For example,
Code: Select all
(iif AlphaCurrentValue < .5, 0, 1)


Something like this.
Offline
User avatar

Bryan Ray

  • Posts: 2491
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: How do you get RGBA values in expressions?

PostTue Oct 04, 2022 5:23 pm

Set up a slider and Modify it with the Probe Modifier. Then you can reference the slider in your expression.

Word of warning: When created using Modify With..., the Probe's output is clamped. So if you need an unclamped value, create the probe using a temporary control, then use Connect To to hook up your actual control. Once that's done, you can delete it from the temp control.
Bryan Ray
http://www.bryanray.name
http://www.sidefx.com

Return to Fusion

Who is online

Users browsing this forum: Bing [Bot], roger.magnusson and 54 guests