Search - User list
Full Version: Using float for position information in VEX
Root » Houdini Learning Materials » Using float for position information in VEX
capkai
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?
animatrix_
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.