Clément Bouchet

Fusion expresions - Random change between two values

Recommended Posts

Hi Everyone,

I'm trying to build a flicker effect in Fusion. I know there a tool for it but it doesn't behave like I want. (Or I don't know to use it properly)

I want a random change of the exposure or the gamma but between a min and max value I can choose. I want the values to only go lower than the original exposure. (never higher)

Do you know a expression for that?

 

I've tried few things and I've looked online , I've also compared it with the tools in Flame and AE but I failed...

Thank you very much. 🙂

Link to comment
Share on other sites
10 hours ago, Clément Bouchet said:

Hi Everyone,

I'm trying to build a flicker effect in Fusion. I know there a tool for it but it doesn't behave like I want. (Or I don't know to use it properly)

I want a random change of the exposure or the gamma but between a min and max value I can choose. I want the values to only go lower than the original exposure. (never higher)

Do you know a expression for that?

How about this:

:randomseed(time); return random()*(max-min)+min

For example, if you want a random value between 0.8 and 1:

:randomseed(time); return random()*(1-.8)+.8

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.