Answered
is it possible to use two expressions at once?
- February 11, 2022
- 1 reply
- 474 views
Generally, when you combine two expressions, you assign the result of the first expression to a variable and then incorporate that variable into the calculation for the second expression. In your case though, smooth() only works on the pre-expression value of the property, so you can't do clamp, then smooth, only smooth, then clamp, which would be like this (but probably isn't what you want):
s = smooth(.5,11);
min=[97.0,97.0];
max = [103.0,103.0]
clamp(s,min,max);
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.