Why won't this ramp parameter work?

   3161   4   0
User Avatar
Member
228 posts
Joined: Dec. 2012
Offline
I have a VEX shading network that is supposed to read in a point attribute from geometry. I then use that attribute to drive a color ramp. However, the ramp doesn't seem to work. Anyone know what I'm doing wrong?

Attachments:
vexRampBug.hipnc (79.5 KB)

www.kmcnamara.com
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
I checked your file and this is OK !?
Maybe this is bug in your Houdini version :?

Also you can type “1-$PT/$NPT” expression instead of “fit($PT, 0, npoints(”../line1“), 1, 0)” !
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
228 posts
Joined: Dec. 2012
Offline
Thanks for the reply - Did the strip render blue and white for you? No matter how I change the ramp it always renders with an even white to black gradient.
www.kmcnamara.com
User Avatar
Member
8554 posts
Joined: July 2007
Offline
the rampTest node under /VEX is just the definition of your shader
the actual instance of that shader which you are using to shade your curve is in /SHOP/rampTest1 so you need to tweak ramp on that node instead

and maybe rather than defining your shaders as VEX Shader Types (which is quite old way of working) you can just build them directly in SHOP context and convert to HDA if you need more instances with the same UI
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
228 posts
Joined: Dec. 2012
Offline
Good point on both counts 8) Works great. Thanks!
www.kmcnamara.com
  • Quick Links