Moving Attributes
1824
6
1
-
- is
- Member

- 4 posts
- Joined: 6月 2019
- Offline
Hello
I need to move the z values over to y. How can I do this?
-
- jsmack
- Member

- 8070 posts
- Joined: 9月 2011
- Offline
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: 1月 2018
- Offline
jsmack
2 years into Houdini and didn't know about the first syntax for swizzling yet! Thanks!
-
- mrCatfish
- Member

- 737 posts
- Joined: 12月 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 - 2021年9月28日 10:13:49
Sean Lewkiw
CG Supervisor
Machine FX - Cinesite MTL
-
- jsmack
- Member

- 8070 posts
- Joined: 9月 2011
- Offline
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

- 8993 posts
- Joined: 7月 2007
- Offline
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: 7月 2005
- Offline
I've been doing it the long way the entire time like a savage.
Thanks for the share!
G