Alex Majewski

alexmajewski

About Me

EXPERTISE
Developer
INDUSTRY
Advertising / Motion Graphics

Connect

LOCATION
Poznan, Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

How to convert vector3 to vector2 in a way that scales? Oct. 28, 2025, 1:22 p.m.

@vikus What do you mean it remains a vector3? It's vector2 in your hipfile as well as when trying your original VEX technique. And it can't not be vector2 since we create a new attribute.

One thing that I noticed about the new detail wrangle is that it produces different values than all previous methods (check geo spreadsheet). Not sure yet why. Btw if you set Attribute Swap method to "Move" the attribdelete2 node is no longer needed.

How to convert vector3 to vector2 in a way that scales? Oct. 27, 2025, 10:59 a.m.

@vikus Ooh okay! vector2() is so much easier to type, how did I miss this one for so long

Your solution is very good. Thank you so much!

I was experimenting with different ideas in the meantime, so how about this for a bit more SOP-based solution: First Attribute Swap to add a _tmp suffix to my attribs, then use vector2() in a wrangle to re-create their names, then delete all attribs with *_tmp suffix.

How to convert vector3 to vector2 in a way that scales? Oct. 27, 2025, 6:58 a.m.

It's been bugging me all weekend. For the record, I know how to do it in general in a rather clunky way.
The way I do it right now is I have an attribute and I create a second attribute of a different name, like this:
u@uv2 = set(v@uv1.x, v@uv1.y);
So, now I have two attributes. And the old attribute has the name that I'd like the new attribute to use. Let's imagine we have 5-10 attributes to convert. This technique does not scale unless we introduce an elaborate setup that manages everything.
What I wish was possible:
u@uv = set(v@uv.x, v@uv.y);

I also tried to do this with SOP tools, I looked at things like Attribute Cast or Attribute Create, but couldnt figure anything out.

The end goal is to turn vector3 into vector2 and keep the original name on the vector2. Kind of like Attribute Promote's "Delete Original" checkbox.