How to reference Intrinsic attribute?

   16099   5   1
User Avatar
Member
620 posts
Joined: Nov. 2013
Offline
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!
User Avatar
Member
4261 posts
Joined: July 2005
Offline
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.
if(coffees<2,round(float),float)
User Avatar
Member
620 posts
Joined: Nov. 2013
Offline
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!
User Avatar
Member
8554 posts
Joined: July 2007
Offline
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
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
380 posts
Joined: July 2005
Offline
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.
User Avatar
Member
8554 posts
Joined: July 2007
Offline
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]
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links