how to create group by color in 19.5
6389 11 3- gus1234
- Member
- 1 posts
- Joined: April 2019
- Offline
Hi,
Im trying to create groups from colors but in the tutorial that I'm watching they use partition which seems to be deprecated in the lastest Houdini 19.5, is there another way of doing this? In the docs it says to use groupsfrom name but I cant seem to figure out how to get it to work. Thanks for any help! (screenshot attachted)
Im trying to create groups from colors but in the tutorial that I'm watching they use partition which seems to be deprecated in the lastest Houdini 19.5, is there another way of doing this? In the docs it says to use groupsfrom name but I cant seem to figure out how to get it to work. Thanks for any help! (screenshot attachted)
- Benyee
- Member
- 59 posts
- Joined: April 2008
- Offline
- Ziyad
- Member
- 2 posts
- Joined: Oct. 2019
- Offline
- Andr
- Member
- 899 posts
- Joined: Feb. 2016
- Offline
- tamte
- Member
- 8772 posts
- Joined: July 2007
- Offline
gus12341. create any string attribute from any values you want, in your case color
In the docs it says to use groupsfrom name but I cant seem to figure out how to get it to work.
2. use Group From Name to create groups by any unique value of provided string attribute
for example for primitive Cd attrib:
1. Primitive Wrangle:
s@color_string = sprintf("rgb_%f_%f_%f", v@Cd.x, v@Cd.y, v@Cd.z);
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- tanguybc
- Member
- 35 posts
- Joined: Oct. 2018
- Offline
- tanguybc
- Member
- 35 posts
- Joined: Oct. 2018
- Offline
- tanguybc
- Member
- 35 posts
- Joined: Oct. 2018
- Offline
- tamte
- Member
- 8772 posts
- Joined: July 2007
- Offline
tanguybcyes, this is definitely the easy way to do individual groups based on some expression, you can also use Group Expression SOP
I was able to create my groups with VEX :
@group_outer2UV = @Cd.x > 0.15;
@group_inner2UV = @Cd.y > 0.15;
additionally for simple comparisons, you can even use the same expression (without spaces) directly in group fields as ad-hoc group without having to create the group itself
the Group From Name SOP approach is more to procedurally create as many groups as there is unique values in an attribute, like mentioned Partition SOP used to do
Edited by tamte - May 6, 2023 21:56:13
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- tanguybc
- Member
- 35 posts
- Joined: Oct. 2018
- Offline
- crtqcrtq
- Member
- 3 posts
- Joined: Sept. 2021
- Offline
- tamte
- Member
- 8772 posts
- Joined: July 2007
- Offline
crtqcrtq
Hello,
I'm in the same situation. I have a mask attribute i need to promote as group but i don't know what VEX expression to use. I basically wanna extrude an attribute paint but can't seem to be able. Any help?
Thanks!
mask attribute from Attribute Paint is usually float, so all you need to do is promote it to prim to be able to use in Poly Extrude
so append:
- Attribute Promote (Orig Name: mask, New Class: Primitive, Change New Name: On, New Name: zscale)
- Poly Extrude (Divide Into: Individual Elements, Distance: >0, Local Control/Distance Scale: On)
(and if you want optimize the polygons with 0 extrusion you can type this int the Group: @zscale>0)
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
-
- Quick Links