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!
How to reference Intrinsic attribute?
16620 5 1- jerry7
- Member
- 644 posts
- Joined: 11月 2013
- Offline
- wolfwood
- Member
- 4271 posts
- Joined: 7月 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.
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)
- jerry7
- Member
- 644 posts
- Joined: 11月 2013
- Offline
- tamte
- Member
- 8747 posts
- Joined: 7月 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
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
FX Supervisor
Method Studios, NY
- sdugaro
- Member
- 380 posts
- Joined: 7月 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.
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
- Member
- 8747 posts
- Joined: 7月 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]
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
FX Supervisor
Method Studios, NY
-
- Quick Links