[plugin] Map and constrain value

Post your completed addons to share with the community

Post » Mon Oct 21, 2013 12:52 pm

You can find the plugin here.


This simple plugin provides two expressions; Map and Constrain.

Map re-maps a number from one range to another.

Constrain constrains a number to be within a range.

Cheers!

Be nice until it's time to not be nice
B
36
S
9
G
9
Posts: 293
Reputation: 6,662

Post » Tue Oct 22, 2013 9:47 am

Isn't constrain the same as the clamp expression, or am I understanding this wrong?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Oct 22, 2013 4:58 pm

Yup, it's same. I forgot about it so i implemented my own solution!

You can do the map function yourself inside C2 also, it just returns //(x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min //
Be nice until it's time to not be nice
B
36
S
9
G
9
Posts: 293
Reputation: 6,662


Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests