hi
I can get a setList in python easily:
alist =
setList = list(set(alist))
can I do this in wrangle?
thank you very much!
can i do this in wrangle?
2149 3 0- luoqiulin
- Member
- 303 posts
- Joined: May 2007
- Offline
- animatrix_
- Member
- 4623 posts
- Joined: Feb. 2012
- Offline
You can use the array function:
http://www.sidefx.com/docs/houdini15.0/vex/functions/array [sidefx.com]
http://www.sidefx.com/docs/houdini15.0/vex/functions/array [sidefx.com]
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
- luoqiulin
- Member
- 303 posts
- Joined: May 2007
- Offline
hi pusat
thank you for your reply, I'm sorry that it's not clearly about my question.
alist =
setList = list(set(alist))
print alist
print setList
after the “set()” the same value in the list are removed. the question is can I do this “set()” like option in wrangle? I wander if I do this in wrangle, it can be much faster!
thank you very much!
thank you for your reply, I'm sorry that it's not clearly about my question.
alist =
setList = list(set(alist))
print alist
print setList
after the “set()” the same value in the list are removed. the question is can I do this “set()” like option in wrangle? I wander if I do this in wrangle, it can be much faster!
thank you very much!
- animatrix_
- Member
- 4623 posts
- Joined: Feb. 2012
- Offline
There is no set data type in VEX but I think I submitted an RFE for this a few years ago. While not the same, in Max, there is a BitArray data type which is very handy for variety of problems.
There is also no remove duplicates method AFAIK.
There is also no remove duplicates method AFAIK.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
-
- Quick Links