Hi,
I'm new in the forum of SideFx.
I've a question about a group. I have to select all faces along the curve near the face “1”: “6,11,16,21,26…” so I've put the expression: $PR%5 == 1. But like you can see, it doesn't work.
Someone know how to resolve it?
Thanks
Davide
GROUP EXPRESSION
5228 4 2-
- cova96
- Member
- 4 posts
- Joined: May 2017
- Offline
-
- neil_math_comp
- Member
- 1743 posts
- Joined: March 2012
- Offline
That's the Group Create SOP. The “Base Group” parameter acts like Group fields on other SOPs, so expressions of that sort won't work there. However, if you use the new Group Expression SOP, set to group primitives, you should be able to write
(@primnum%5)==1for the VEX expression. Hopefully that's what you were looking for.
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
-
- cova96
- Member
- 4 posts
- Joined: May 2017
- Offline
ndickson
That's the Group Create SOP. The “Base Group” parameter acts like Group fields on other SOPs, so expressions of that sort won't work there. However, if you use the new Group Expression SOP, set to group primitives, you should be able to write(@primnum%5)==1for the VEX expression. Hopefully that's what you were looking for.
Ok thank you. Now it's working! I was watching a tutorial that use houdini 14 and he put directly the vex expression in the group node.. Anyway now I get it.
Thank you!
-
- cova96
- Member
- 4 posts
- Joined: May 2017
- Offline
I think that the problem is the same, but I can't find a solution. I have to extrude the face of the group along the z axis, but they have an attribute that controls how much is this extrusion (attribute: width).
To do that I have to write a line of VEX code in the node of VEX? Is there a esier way?
To do that I have to write a line of VEX code in the node of VEX? Is there a esier way?
-
- neil_math_comp
- Member
- 1743 posts
- Joined: March 2012
- Offline
If you turn off Transform Extruded Front, set Distance to 0.2, and set Distance Scale (on the Local Control tab) to
width, does that do what you need?
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
-
- Quick Links

