Jump to content

expression for fit range


ai88

Recommended Posts

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 by nuki
  • Like 1
Link to comment
Share on other sites

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 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...