Biasing Wedge attribute values

   726   3   1
User Avatar
Member
64 posts
Joined: Sept. 2006
Offline
Hallo everyone
Is there a way to make a ramp parm bias wedge values ?
Ex: Wedge 'viscosity' from 0.1 to 100, but having a 'ramp' that would drive the wedge to sample more around the min or max values accordingly.
Edited by axelsp - June 9, 2022 03:00:35
User Avatar
Member
6705 posts
Joined: July 2007
Offline
axelsp
Ex: Wedge 'viscosity' from 0.1 to 100, but having a 'ramp' that would drive the wedge to sample more around the min or max values accordingly.

add Float Ramp spare parameter to your Wedge TOP
let's say you call it "ramp"

then set your wedge attribute's Wedge Type to Value with expression like this:
chramp("ramp", @pdg_index / (ch("wedgecount") - 1), 0)
to be fully controlled by the ramp values (which can be 0.1~100)
or you can also keep your ramp values 0-1 and have expression like this:
fit01(chramp("ramp", @pdg_index / (ch("wedgecount") - 1), 0), .01, 100)
Edited by tamte - June 9, 2022 05:09:25
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
64 posts
Joined: Sept. 2006
Offline
Tom this is genius, thanks very much! I give that a run asap
User Avatar
Member
6 posts
Joined: Oct. 2019
Offline
tamte
axelsp
Ex: Wedge 'viscosity' from 0.1 to 100, but having a 'ramp' that would drive the wedge to sample more around the min or max values accordingly.

add Float Ramp spare parameter to your Wedge TOP
let's say you call it "ramp"

then set your wedge attribute's Wedge Type to Value with expression like this:
chramp("ramp", @pdg_index / (ch("wedgecount") - 1), 0)
to be fully controlled by the ramp values (which can be 0.1~100)
or you can also keep your ramp values 0-1 and have expression like this:
fit01(chramp("ramp", @pdg_index / (ch("wedgecount") - 1), 0), .01, 100)
Hi. How do I add spare Float Ramp parameter on my Wedge TOP exactly? Thanks
  • Quick Links