Fioxman Posted August 29, 2018 Share Posted August 29, 2018 Hi everyone, I'm learning houdini, and i want to do a very simple thing but i have no clue how to do it. I'm have a curve with 20 points (for exemple), i copy a sphere on the points, so i have 20 spheres, but i want to control the scale of the spheres with a ramp. To increase the scale at the begining and decrease it at the end. I'm still searching, but if someone can help me a bit. Thanks. Quote Link to comment Share on other sites More sharing options...
Sepu Posted August 29, 2018 Share Posted August 29, 2018 This is one way to do it in the resample Sop you could also use a UV Texture Sop and put in rows and columns as well and make sure attribute class is points and instead of using the @curveu you will use @uv.x Anyway here you go. scaleAlongCurve.hipnc Quote Link to comment Share on other sites More sharing options...
Fioxman Posted August 30, 2018 Author Share Posted August 30, 2018 Hi Sepu, Cool, I understand, thank you for your help!! Quote Link to comment Share on other sites More sharing options...
tamagochy Posted August 30, 2018 Share Posted August 30, 2018 float grad = @ptnum/(@numpt-1.0); float ramp = chramp("ramp",grad); f@pscale = fit01(ramp,chf("pscale_min"),chf("pscale_max")); paste it to point wrangle you can use ramp for controlling scale 1 Quote Link to comment Share on other sites More sharing options...
Fioxman Posted August 31, 2018 Author Share Posted August 31, 2018 Thank you Tamagochy, it's even simpler in vex!! Now i know how the "curveu" attribute is created in the resample node. I don't need it anymore. Thanks again! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.