Moving Attributes

   1668   6   1
User Avatar
Member
4 posts
Joined: 6月 2019
Offline
Hello

I need to move the z values over to y. How can I do this?
User Avatar
Member
8041 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 = @P.xzy;
@P = set(@P.x, @P.z, @P.y);
User Avatar
Member
146 posts
Joined: 1月 2018
Offline
jsmack
@P = @P.xzy;
2 years into Houdini and didn't know about the first syntax for swizzling yet! Thanks!
User Avatar
Member
732 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
User Avatar
Member
8041 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.
User Avatar
Member
8785 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
User Avatar
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
  • Quick Links