I'm new to Houdini and trying to understand some things.I have a curve that doesn't rest in one plane and I want to flatten/align it in any plane.I found something in attribute wrangle to do this, but I couldn't understand it.
@P.x = f@fval; or@P.x = i@ival; //When I do this operation, the position information of the points in the x direction becomes zero.
//or
@P.x = 0 //or I can move it to that location by typing a value I want.
So how and why? why does it accept 0 when i don't give any value just equal to f@fval. How does she decide this?
Using float for position information in VEX
1624 1 0- capkai
- Member
- 1 posts
- Joined: 9月 2017
- Offline
- animatrix_
- Member
- 4515 posts
- Joined: 2月 2012
- Offline
Hi,
When you access .x, you are only getting or setting the x component of P, that's why only x component is set to 0 or any other value you use.
When you access .x, you are only getting or setting the x component of P, that's why only x component is set to 0 or any other value you use.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
-
- Quick Links