ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: variable minimum value

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Alex English
Re: variable minimum value
on Apr 23, 2008 at 10:39:23 pm

I know you have this solved already, but I thought I'd post this for others who happen by.

Since the data you're working with is from 0 to 100, if you use Math.max(value, 15), you're losing 15% of your range.

Another way to handle it would be to multiply your value by 0.85, then add 15:
scalefactor = (value * 0.85) + 15;

This would scale your range of data to your range of motion, and guarantee that your minimum would be at 15 (since at a value of zero, it comes out to 0 + 15)

I hope someone finds that useful.


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]