PScale controlled with ramp node

   13053   4   2
User Avatar
Member
1 posts
Joined: Feb. 2014
Offline
Hello all,

as title says I would like to learn how to control particle radius with ramp node. I tried to do this already but failed. The purpose of this method is to easily control the pscale with ramp based on age of particle object.
I am migrating from Maya where this method is matter of several seconds to do. But in Houdini I am lost with this solution.
Thanks a lot.
User Avatar
Member
1737 posts
Joined: May 2006
Offline
In a wrangle:

@pscale = chramp('scale',@age);

Attachments:
pscale_ramp.gif (1.3 MB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
40 posts
Joined: March 2018
Offline
Most efficient reply ever, Mestela
Thanks a lot!!


How could I get a color ramp instead of a spline ramp?

Thanks in advance.
Edited by Dav_Rod - April 6, 2018 06:22:50
User Avatar
Member
36 posts
Joined: May 2015
Offline
You just need to enforce it as a vector ramp and then use any attribute to control such as @P @v @N @pscale @id and so on.

@Cd = vector(chramp("colorRamp",@P.z));

There are already different topics where this has been answered tho, so I suggest searching in both forums before opening another one if you don't wanna risk to not being answered :>
Edited by Cristotek - April 9, 2018 11:00:45
User Avatar
Member
40 posts
Joined: March 2018
Offline
Thanks Cristotek, that solved the problem.
  • Quick Links