using VEX functions (SOPs context)

   1322   1   0
User Avatar
Member
15 posts
Joined: 9月 2014
Offline
Hello,

the attribute wrangle can´t use VEX functions like “ingroup” and the point wrangle node isn´t accessible in houdini 14. I don´t understand why it is hidden.

What´s the best way to run a few lines VEX code with functions like “ingroup”?

Thanks.
Richard Frangenberg
Founder and developer
https://prism-pipeline.com [prism-pipeline.com]
User Avatar
Member
8599 posts
Joined: 7月 2007
Online
ingroup() is function only accessible in sop and pop vex context (so old vopsop and voppop)
attrib wrangle (as well as all other wrangles) is more generic cvex vex context

ingroup() was as well very limited and assumed that you are using first input geo and could return only point membership in point group

cvex context equivalent is:
inpointgroup()
there is as well inprimgroup() for prims

as well you can use @group_groupname syntax to test membership of current point/prim
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links