Jump to content
Sign in to follow this  
Masoud

How could I falloff an attribute based on a "Ramp"?

Recommended Posts

Hi;

I would like to falloff an attribute based on a RAMP, something like what I tried to explain in image bellow.
Is there any SOP to achieve this?
 

falloff to neighbor points.

 

Thanks for helping.

AttBasedOnRamp.JPG

Edited by Masoud

Share this post


Link to post
Share on other sites

point wrangle for example (assuming you want it along x)

float u = relbbox(0, @P).x;
v@Cd = chramp("falloff", u);

otherwise it's up to you what coordinates you use for your ramp, it can be uvs that you generate beforehand, or some distance attribute from Falloff SOP spreading from point group or any other 

Edited by anim

Share this post


Link to post
Share on other sites

Thank you "ANIM", very useful.

I found another solution, too:

ramp.JPG

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×