ai88 Posted February 24, 2020 Share Posted February 24, 2020 Hi guys, I want to add strength to my constraint by using fit expression from 1 to 5. I will use y position but I don't know how to do it. If you know, please can you show me the expression. Thanks. Quote Link to comment Share on other sites More sharing options...
nuki Posted February 25, 2020 Share Posted February 25, 2020 (edited) use this: s@constraint_name = 'ramped_glue'; s@constraint_type = 'glue'; f@strength = fit(v@P.y, ch('min'), ch('max'), 0.0, 1.0)*ch('strength'); in a primitive wrangle. Instead of just multiplying by the 'strength' factor, you could set out_min and out_max instead of 0.0 and 1.0 constraint_ramp.hiplc Edited February 25, 2020 by nuki 1 Quote Link to comment Share on other sites More sharing options...
ai88 Posted February 25, 2020 Author Share Posted February 25, 2020 31 minutes ago, nuki said: use this: s@constraint_name = 'ramped_glue'; s@constraint_type = 'glue'; f@strength = fit(v@P.y, ch('min'), ch('max'), 0.0, 1.0)*ch('strength'); in a primitive wrangle. Instead of just multiplying by the 'strength' factor, you could set out_min and out_max instead of 0.0 and 1.0 constraint_ramp.hiplc Thanks a lot nuki 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.