Biasing Wedge attribute values

   1859   3   1
User Avatar
Member
100 posts
Joined: 9月 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 - 2022年6月9日 03:00:35
User Avatar
Member
8766 posts
Joined: 7月 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 - 2022年6月9日 05:09:25
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
100 posts
Joined: 9月 2006
Offline
Tom this is genius, thanks very much! I give that a run asap
User Avatar
Member
12 posts
Joined: 10月 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
Best regards,
Faxcorp
  • Quick Links