Search - User list
Full Version: How to reference Intrinsic attribute?
Root » Houdini Indie and Apprentice » How to reference Intrinsic attribute?
jerry7
hi,

In Details View, there are Intrinsic Attribute in primitve and detail list.
It seemed doesn't work just like regular attribute. How to use them in Sop group parameter something like @vertextcount>4 ?

thanks!
wolfwood
http://www.sidefx.com/docs/houdini13.0/vex/functions/primintrinsic [sidefx.com]


There is also a detailintrinsic() too that doesn't show up in the help. Same function prototypes but without the prim num.
jerry7
thank you Wolfwood,

Where could i find a full fucntions or default attributes list? I find many things not be mentioned in help reference. For example, I want use primitive index in Attribute Wrangle, and i search document ,nothing! Untill I find @primnum by guessing many words. Very confuse!
tamte
it's not so hidden
in the help to Attrib Wrangle you have link to VEX snippets syntax where you can find that info
http://www.sidefx.com/docs/houdini13.0/vex/snippets#attributes [sidefx.com]

or refer to docs 12.5 where it is on attribwrangle page
http://www.sidefx.com/docs/houdini12.5/nodes/sop/attribwrangle [sidefx.com]

the intrinsic attribute list you can find directly in spreadsheet for any SOP node
in Primitives or Detail modes you can see the list in Intrinsics Menu
sdugaro
how does one do this with HOM?

node = hou.pwd()
geo = node.geometry()

# Add code to modify contents of geo.
# Use drop down menu to select examples.
print geo.intrinsicNames()
print geo.intrinsicValue(“primitivetokens”)
#print geo.intrinsicValue(“measuredperimeter”)

('globaltokens', ‘primitivetokens’, ‘memoryusage’, ‘vertexcount’, ‘pointcount’, ‘primitivecount’, ‘vertexattributes’, ‘pointattributes’, ‘primitiveattributes’, ‘globalattributes’, ‘detailattributes’, ‘vertexgroups’, ‘pointgroups’, ‘primitivegroups’, ‘edgegroups’, ‘bounds’, ‘metaexpr_code’, ‘metaexpr_string’)
('abcanimation', … ‘measuredarea’, ‘measuredperimeter’, ‘measuredvolume’, ‘memoryusage’, … ‘vwrap’)




not sure how to tell it to lookup a prim intrinsic from a python sop.
t.i.a.
tamte
it's part of hou.Prim Class
http://www.sidefx.com/docs/houdini15.0/hom/hou/Prim [sidefx.com]

and to the original question:
since H15 you can use intrinsics in group syntax directly @intrinsic:vertexcount>4
http://www.sidefx.com/docs/houdini15.0/news/15/geometry#idm139836803707904 [sidefx.com]
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB