Moving Attributes

   1676   6   1
User Avatar
Member
4 posts
Joined: June 2019
Offline
Hello

I need to move the z values over to y. How can I do this?
User Avatar
Member
8041 posts
Joined: Sept. 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: Jan. 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: 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
User Avatar
Member
8041 posts
Joined: Sept. 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
8787 posts
Joined: July 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: July 2005
Offline
I've been doing it the long way the entire time like a savage.
Thanks for the share!

G
  • Quick Links