Moving Attributes
1674
6
1
-
- is
- Member
- 4 posts
- Joined: June 2019
- Offline
Hello
I need to move the z values over to y. How can I do this?
-
- jsmack
- Member
- 8041 posts
- Joined: Sept. 2011
- Online
Use a swizzle operation. Either a swizzle vop in an attribute vop or with a wrangle.
For example in a wrangle you can use the swizzle syntax or the set function:
@P = set(@P.x, @P.z, @P.y);
-
- jarenas
- Member
- 146 posts
- Joined: Jan. 2018
- Offline
jsmack
2 years into Houdini and didn't know about the first syntax for swizzling yet! Thanks!
-
- mrCatfish
- Member
- 732 posts
- Joined: Dec. 2006
- Offline
jarenas
2 years into Houdini and didn't know about the first syntax for swizzling yet! Thanks!
20 years here and this is news to me!
Edited by mrCatfish - Sept. 28, 2021 10:13:49
Sean Lewkiw
CG Supervisor
Machine FX - Cinesite MTL
-
- jsmack
- Member
- 8041 posts
- Joined: Sept. 2011
- Online
mrCatfish
jarenas
2 years into Houdini and didn't know about the first syntax for swizzling yet! Thanks!
20 years here and this is news to me!
well it was added like a year ago, so don't feel too bad.
-
- tamte
- Member
- 8785 posts
- Joined: July 2007
- Online
jsmack
well it was added like a year ago, so don't feel too bad.
really? I could have sworn it's been in VEX for ages
Tomas Slancik
FX Supervisor
Method Studios, NY
-
- keyframe
- Member
- 1533 posts
- Joined: July 2005
- Offline
I've been doing it the long way the entire time like a savage.
Thanks for the share!
G