expression

   4349   5   0
User Avatar
Member
3 posts
Joined: July 2005
Offline
How can I use the ease() function within an expression. I got something like this; if($F>20 && $F < 40, ease(30), 14)
but it didnt work…any input?
User Avatar
Member
7708 posts
Joined: July 2005
Online
The ease() expression function doesn't take any arguments. Are you thinking of easep()? In either case, the interpolation will be based upon the key values at the ends of your channel segment.
User Avatar
Member
3 posts
Joined: July 2005
Offline
shortly after I posted the problem I tried the easep() but it didnt work. It doesnt show me that is a syntax problem, so i dont know what i'm missing as yet
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
To get help on a function, open the textport then type exhelp easep()
There's at least one school like the old school!
User Avatar
Member
7708 posts
Joined: July 2005
Online
Your expression is still wrong actually even if you do use easep() then. I'm assuming that you want to ease into a value of 30 from 14 in between frames 20 and 40?

I think the easiest way is to do it directly. Set the appropriate keys on your parameter and change them to constant() or ease() at the right spots. Remember that expressions in Houdini are simply special cases of channels.
User Avatar
Member
3 posts
Joined: July 2005
Offline
the funny thing is that I tried using it but the values go negative.
  • Quick Links