* The Houdini point color attribute propagates to vertex color on output. The reason I need such a workflow in the first place is to generate geometric property masks for a Houdini asset, that will be available for the target shading system via vertex color input. automatically refers to that named attribute in the same point that is now being iterated over. I finally managed to do this using a Point Wrangle node with the following VEX expression that sets the Cd (color) attribute’s vector components by referring to the 3 custom attributes “att_a”, “att_b” and “att_c” (see image below): = the Point Wrangler node does that I couldn’t achieve by writing expressions into the RGB fields of the Color node or by using loops is that it iterates all its input SOP’s points, and within its expression the attribute name i.e. * I’m new to Houdini so the fact these approaches didn’t work for me doesn’t mean they can’t be used for this. I also tried various loop setups iterating the geometry points, couldn’t get that to work either. I kept trying to use the Color SOP node with a “point()” function in its R, G, B fields attempting to refer to the wanted attributes but it didn’t work for me, Took me some time to figure out how to set the points color (“Cd”) attribute with data stored initially in custom points attributes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |