Sorry if this question is boring.
what is a detail attribute? How can i use this class of attribute?
Thank you very much.
Detail Attribute
3762 2 0- Alejandro Echeverry
- Member
- 691 posts
- Joined: 6月 2006
- Offline
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
- edward
- 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]
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]
- Alejandro Echeverry
- Member
- 691 posts
- Joined: 6月 2006
- Offline
Great Explanation, thank you very very much.
Thanks!!!!!!!!
Thanks!!!!!!!!
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
-
- Quick Links