Adding two columns of detail attributes together into one ?

   3559   3   2
User Avatar
Member
38 posts
Joined: Sept. 2010
Offline
Hi guys,

How do i adding two columns of detail attributes together into one?

For example, i click on my details tab, to find that i have two detail attributes. one of them is A and the other is B, How do i sum them up?

Thanks
User Avatar
Member
789 posts
Joined: April 2020
Offline
one way to do this would be to use the detail expression:

exhelp detail
float detail (string surface_node, string attrib_name, float attrib_index)
REPLACED BY
hou.Geometry.attribValue()

Returns the value of a detail attribute.


This expression may not work if <surface_node> is the _currently
cooking_ node. Try specifying an upstream node.

EXAMPLES
detail(“/obj/geo1/attribpromote1”, “area”, 0)

Returns the total area of the geometry, if the geometry had first
been measured and then AttribPromote had promoted the area primitive
attribute to a detail attribute with Sum as the promotion method.
User Avatar
Member
345 posts
Joined:
Offline
point(“../geo1/grid1), ”DETAIL NAME1“, 0)+point(”../geo1/grid1), “DETAIL NAME2”, 0)

For mor info type exhelp point in textport
User Avatar
Member
38 posts
Joined: Sept. 2010
Offline
thanks guys for the help
  • Quick Links