Hi,
abs() returns all absolute value but is there such a function that returns all negative or make the value always negative? Is there not one because users can simply type ‘-’ infront of any expressions they use?
I scanned through http://www.sidefx.com/docs/houdini11.0/expressions/ [sidefx.com], either it's not there or it eluded me.
Cheers!
eitht.
Q: Expression function that returns all value negative
5533 5 1- eitht
- Member
- 257 posts
- Joined: Nov. 2010
- Offline
- stevenong
- Member
- 1631 posts
- Joined: July 2005
- Offline
- tamte
- Member
- 8555 posts
- Joined: July 2007
- Offline
- eitht
- Member
- 257 posts
- Joined: Nov. 2010
- Offline
- tamte
- Member
- 8555 posts
- Joined: July 2007
- Offline
simple math:
you may be thinking that
1. you have initial transform of 0.85 which is relative referenced parameter
2. on one side you add -4.3 to it in the referencing expression
3. on second side you transform it -6 with another transform sop
4. and yet they both result in the same position (0.85-4.3 == 0.85-6 ?)
but in reality in your file you are not adding -4.3 to 0.85 but to -0.85
so one side: -0.85 + (-4.3) = -5.15
second side: 0.85 - 6 = -5.15
so they are equal and therefore they result in the same position
you may be thinking that
1. you have initial transform of 0.85 which is relative referenced parameter
2. on one side you add -4.3 to it in the referencing expression
3. on second side you transform it -6 with another transform sop
4. and yet they both result in the same position (0.85-4.3 == 0.85-6 ?)
but in reality in your file you are not adding -4.3 to 0.85 but to -0.85
so one side: -0.85 + (-4.3) = -5.15
second side: 0.85 - 6 = -5.15
so they are equal and therefore they result in the same position
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- eitht
- Member
- 257 posts
- Joined: Nov. 2010
- Offline
-
- Quick Links