Remove prim Group Vex

   4957   3   0
User Avatar
Member
14 posts
Joined: 10月 2010
Offline
Hello People

In a wrangle I delete Prims by a certain thresold by attribute, and I need that each time that I remove this Prims, delete also the Primitive Group that is related to it.

I search vex Functions but I didn't find nothing….

Have someone idea how to do it?… Must be in vex, not python or attaching any SopNode.

Thanks in advance.
editor compositor
User Avatar
Member
8041 posts
Joined: 9月 2011
Offline
The blast node can optionally delete the group if it is empty. Not all operations can or should be done in vex. Removing geometry is best done with the blast node, as there is an increased cost associated with doing it in VEX.
User Avatar
Member
899 posts
Joined: 2月 2016
Offline
I've not tested it with groups, which would be a more real world scenario, so measurements might vary, anyway…
for deleting all the prims, we're talking about more than hundred of times slower than the blast node.
For deleting all the points it's even worse. I wonder if I did anything wrong with the performance monitor ahaha

Would be worth to measure it with groups and deleting only a portion of the geo.

Anyway, I was totally not aware about the big performance difference of the wrangle node in respect to the blast node. Thanks for pointing that out!

The adagio I've always heard is “always better to do stuff in a point\primitive Wrangle for performance reasons”.

Well, not at all true.
Edited by Andr - 2018年11月14日 13:55:05

Attachments:
removePRIMS.JPG (110.3 KB)
removePOINTS.JPG (125.0 KB)
efficiency.hiplc (132.3 KB)

User Avatar
Member
14 posts
Joined: 10月 2010
Offline
Thanks Jmack

So if it's not possible with vex I think I will go with python (I think will be slower)..

But will be really nice if someone have a trick to doit
editor compositor
  • Quick Links