GH1 - New Clamp Component

Is this new or have I just never noticed it before?

image

1 Like

Are you sure this didn’t come with an add-on? Found it in Rhino 8 WIP.

1 Like

Not sure, which is why I’m asking, if it’s non native I don’t want to use it but will absolutely make use of it if it is native. When I checked the Component Info it says its from CurveComponents.gha

image

It’s found in the Maths->Util tab on my end. I didn’t notice it until yesterday’s WIP install.

1 Like

Awesome, I’ve been wanting this for awhile!

Remap Numbers already does a similar thing ?

Similar but different.

Remap will change the Value number to fit within the domain, clamp will simply not return the value if it is greater than the max of the domain.

And of course this is easy enough with a > component or expression such as

If(x>y,y,x) but still it’s nice to have a component for it

If you provide the same domain in Source and Target, you’ll get the expected clamping-only behaviour.

1 Like

I see,

Yea that’s helpful too:

The Clamp component is native and was added about a year ago.

1 Like

I was just searching for clamp recently and didn’t see it. I feel like this a paradox haha glad it’s there though thanks