Tomas Slancik
tamte
About Me
INDUSTRY
Advertising / Motion Graphics
Connect
LOCATION
New York,
United States
WEBSITE
Houdini Skills
Availability
I am currently employed at Method Studios
Recent Forum Posts
VEX : argsort() question Sept. 18, 2025, 3:55 p.m.
also going back to your original issue, you don't really need to deal with arrays or VEX at all
just Extract Centroid -> Sort -> Enumerate and Attribute Copy back based on cluster attrib
just Extract Centroid -> Sort -> Enumerate and Attribute Copy back based on cluster attrib
Blend node in COP's blurring image Sept. 18, 2025, 12:08 p.m.
it looks like you are blending images of different resolutions and/or different pixel alignments which can result in one of them being resampled
you can try plugging the highest res image first (bg) into the Blend COP
you can try plugging the highest res image first (bg) into the Blend COP
VEX : argsort() question Sept. 18, 2025, 11:56 a.m.
Kareeem
...
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 ???
you can also just use another argsort() to get the "inverted" indices
f[]@cluster_heights = array( 0.949269, 0.949269, 0.0507307, 0.0507307, 0.52028, 0.52028 ); i[]@indices = argsort( f[]@cluster_heights ); // [ 2, 3, 4, 5, 0, 1 ] i[]@inverted_indices = argsort( i[]@indices ); // [ 4, 5, 0, 1, 2, 3 ]