Detail Attribute

   Views 3762   Replies 2   Subscribers 0
User Avatar
Member
691 posts
Joined: 6月 2006
Offline
Sorry if this question is boring.


what is a detail attribute? How can i use this class of attribute?


Thank you very much.
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
User Avatar
Member
7908 posts
Joined: 7月 2005
Online
A detail attribute is one that is global to the SOP (or hou.Geometry in python). You can use it via the detail() and details hscript expressions, or functions on the hou.Geometry object in python.

Take some example, the point Cd (color) attribute. This is a float value per point. But let's say we want to compute the average color over all points. Where would we put it? Putting it in a detail attribute makes sense since there will only be one value that is the average. So you can use the AttribPromote SOP to promote the point Cd attribute into a detail attribute, using “average” for the method. Now you can get at the computed average using the functions I mentioned above.

All the glory internal details can be found here:
http://odforce.net/wiki/index.php/GeometryAttributes [odforce.net]
User Avatar
Member
691 posts
Joined: 6月 2006
Offline
Great Explanation, thank you very very much.

Thanks!!!!!!!!
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
  • Quick Links