int  attribdataid(<geometry>geometry, string attribclass, string attribute_name)
Returns the data id corresponding to an attribute. Data ids can be used for advanced forms of caching. If the data id of an attribute is the same as you've seen before, you can assume the attribute contains the same data it did before. This allows acceleration structures to only be built when necessary.
The length and contents of the array are not defined, and no assumptions should be made about the layout. The result will vary from run to run of Houdini, so only exact equality should be used.
In addition to the normal attribute classes, an additional attribute class of “meta” is supported. This has the additional data ids of
The overall wiring of vertices, points and primitives. This will change if any points are rewired or vertices added.
This data id changes if the contents of the primitive change at all.
This data id tracks the entire geometry as a whole. If it is unchanged, no changes occurred in the geometry.
When running in the context of a node (such as a wrangle SOP), this argument can be an integer representing the input number (starting at 0) to read the geometry from.
Alternatively, the argument can be a string specifying a geometry file (for example, a
.bgeo) to read from. When running inside Houdini, this can be an
You can also use
"vertexgroup" to read from groups.
The name of the attribute (or intrinsic) to read.
An integer array indicating the data id of the attribute.