Expression Interpolation Problem

Expression Interpolation Problem

Anonymous
Not applicable
676 Views
4 Replies
Message 1 of 5

Expression Interpolation Problem

Anonymous
Not applicable
Hello everyone

i've been using Max for quite a few years now.
i've recently come across a problem i just can't seem to solve.
i need one paramater to control another - easy enough right ???

the problem is i need to interpolate that number to suite a range.
for example:
if i have a bend angle that ranges from 0 to 90
and i want to wire those values to a noise modifiers' Strength property
but have it interpolate so that if the bend angle is 0 so is the noise strength
and if the angle is 90 - the strength is 10
so that 0-90 on the bend is 0-10 on strength

in After Effects it's really easy to do and i seem to be stuck in an After effects Expressions State of Mind.

CAN ANYONE HELP!!!!!???????
Thanks in advance

Ariel
0 Likes
677 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Uhm, divide by 9? 😉
0 Likes
Message 3 of 5

Anonymous
Not applicable
Uhm, divide by 9? 😉

To expand... you can put basic expressions into the wire parameters dialog just type them in like you would in max script.
0 Likes
Message 4 of 5

Anonymous
Not applicable
Uhm, divide by 9? 😉

To expand... you can put basic expressions into the wire parameters dialog just type them in like you would in max script.


Of course, we have to keep in mind that rotations are in Radians, so the expression would be probably something like

(radToDeg angle)/9

So when rotation is Pi/2 radians, the angle will be 90.0 degrees divided by 9 or a value of 10.0.
When it is 0 radians, it will be 0.0 degrees and a value of 0.0
0 Likes
Message 5 of 5

Anonymous
Not applicable
yeah but i just gave out those numbers as an example....
the real values range from are for the bend Gizmo X Pos which range around the negative 200's.

in after effects you've got a linear interpolator
and you would use it like this:
x=some layers' position value
linear(x,-200,-560,0,10)

so when the layer is at -200 you get 0
and when the layer is at -560 you get 10

of course you would input something more spesific like an X,Y or Z value.

i'm jusr looking for for somrthing along those lines.
and i'm begining to realize that the answer might not be so simple.

sorry if my example was not that clear in the first place

Ariel
0 Likes