Yi Yu

goolyuyi

About Me

Connect

LOCATION
Not Specified
ウェブサイト

Houdini Skills

Availability

Not Specified

Recent Forum Posts

the vop's constant node's icon makes me sometimes misreading 2023年1月30日3:07


hi
the vop's constant node's icon makes me sometimes misreading it. because it looks like a actually value set in the node, but it's not, so I have to read carefully the blue text above with more attention.
could you plan to change it?

is there possible to grab elements attrib to array? 2022年12月17日9:34

Andr
Since houdini 19, Attribute Promote Sop has implemented a useful "array of all" method. Which is faster than using setdetailattrib() vex function. Since you want to store @P.y, you should first create a dummy attribute 'Py' as typing directly @P.y in Attrib Promote won't work.
This will just get the values into an array, sorted by point order.


To sort them by value, you could use the sort() function.
Check also the argsort(), which returns the list of indices sorted by the their values.

Note: these functions can be very cpu intensive.

it make sense, thanks!

is there possible to grab elements attrib to array? 2022年12月17日7:59

is there possible to grab elements attrib to array without any loop in VEX?
say if i’m running a vex snippet in detail mode. I want to get a sorted P.y attrs into an array