Use a Curve to Adjust a Ramp

   211   1   1
User Avatar
Member
30 posts
Joined: 2月 2017
Offline
Hi all,

I'm still a beginner with VEX, but I'm trying to use it more. So, I'm wondering if there's a way, either using VEX or VOPs, to input an existing curve to control the shape of a ramp parameter.

There's a lot of tutorials/information out there for doing it the other way around, for example a bit of VEX code can be used to easily control the shape of a line SOP, but I'm wanting to use some existing curves as a template and them modify on top of those curves using a ramp, without having to trace all the curves by hand.

Any resources would be appreciated.

Thanks
User Avatar
Member
4517 posts
Joined: 2月 2012
Offline
It depends on whether you want to modify the ramp parameter, which would require Python instead of VEX.

You can also use the curve directly using the primuv VEX function to sample P accordingly.

In either case your curve has to be ideally 2d and you have to decide on a convention i.e. which plane you have to use, etc like XY, YZ, XZ, or even best fit plane.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
  • Quick Links