gazzalaser Posted February 7, 2022 Share Posted February 7, 2022 Hello! I'm kind of new to Houdini and especially to VEX. I was trying to animate scales appearing on a geometry using a ramp in an attribute wrangle, which controls pscale. This way, when changing ramp point position pscale changes along the x axis. However, the last points don't change, as you can see in the first image. What am I missing? Thank you! Quote Link to comment Share on other sites More sharing options...
ParticleSkull Posted February 8, 2022 Share Posted February 8, 2022 Hey Martina, Hard to say without having a look at the file but I believe the issue is at your input values at the fit range, try somthing bigger then -1 and 1 I'd try something like this: @pscale = chramp("scale" , fit( l , ch("old_min") , ch("old_max") , 0 , 1) ); (I hope this code works) Then you can just click at this button to create the sliders Quote Link to comment Share on other sites More sharing options...
gazzalaser Posted February 8, 2022 Author Share Posted February 8, 2022 Thank you, unfortunately it didn't work. Of course I could have attached my file earlier. pscale_ramp.hip Quote Link to comment Share on other sites More sharing options...
ParticleSkull Posted February 8, 2022 Share Posted February 8, 2022 Done, let me know if you have any doubts pscale_ramp_v2.hiplc 1 Quote Link to comment Share on other sites More sharing options...
gazzalaser Posted February 8, 2022 Author Share Posted February 8, 2022 Oh I see, I was wondering how to make it work with different sizes, but I would have never thought of this solution. Thank you a lot! 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.