group-name from name attribute

   800   3   1
User Avatar
Member
46 posts
Joined: July 2015
Offline
hi,

i have some points with a name attribute.
i want to create groups with the group-name from this name-attribute, but the group node doesnt accept @name as the group-name.
does somebody know how to achieve this?
(i need these group-names for better selection points on the rivet obj node...)
Edited by soulcage_dpt - Sept. 25, 2023 15:17:50
User Avatar
Member
2538 posts
Joined: June 2008
Offline
Wouldn't that just be a one-liner inside a point wrangle? (assuming name is actually on points and not prims)
setpointgroup(0, s@name, @ptnum, 1, "set");
Edited by Enivob - Sept. 25, 2023 15:41:40
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
420 posts
Joined: Feb. 2012
Online
You could also use groups from name sop. If I understand correctly what you want.
User Avatar
Member
46 posts
Joined: July 2015
Offline
thx a lot for the hints...

@Enivob, this works perfect, thx for the snippet (had to rename the name-attribute since it contained a namespace-character ":" and it seems group-names dont like ":")

@sepu, the "groups from name" sop doesnt exist in 19.0.xx, seems only be available in 19.5.xx, but this also works perfect in 19.5.xx, the renaming of the namespace-character is then automatically...thx
Edited by soulcage_dpt - Sept. 26, 2023 03:54:10
  • Quick Links