derrick

derrick

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

My Badges

SideFX Staff
Since Jul 2005

Recent Forum Posts

VEX : argsort() question Sept. 17, 2025, 1:57 p.m.

Kareeem
Most of it works but the argsort() function does something I dont understand. What is it actually doing?

f@cluster_heights = 0.949269, 0.949269, 0.0507307, 0.0507307, 0.52028, 0.52028
i@cluster_heights_index = 2, 3, 4, 5, 0, 1

Should this not be: 4, 5, 0, 1, 2, 3 ???

It reports the order items should appear in a sorted list. The value at index 2 should be the first item in the sorted list, the value at index 3 should be the second item in the sorted list, etc. When you do this, the resulting sorted list is:

0.0507307, 0.0507307, 0.52028, 0.52028, 0.949269, 0.949269

`xyzdist` in C++ Feb. 27, 2024, 1:09 p.m.

Procedural PolySplit Nov. 9, 2023, 3:36 p.m.

PaoloGiandoso
When you say channel, do you mean a Keyframe? Is it the same thing?
Does creating a keyframe tells houdini to evaluate the text as an expression instead of a string?

Yes, that is what I mean. Once you set a keyframe, you can click on the parameter's label to switch between viewing the expression and what it evaluates to. I find this more useful than using backticks because the colour makes it easier to notice there is an expression and I can click on the label to see what value the expression produced.