List all intrinsics, their data types and writability?

   482   0   0
User Avatar
Member
372 posts
Joined: 6月 2013
オンライン
I would like to be able to know all intrinsics, their data types and if they are writable or read only. More over, if possible, I would like to know if they exist in a specific geometry, specially the primitive ones.

The ability to do this is a bit scattered and incomplete from what I gathered.

Python

https://www.sidefx.com/docs/houdini/hom/hou/Geometry.html [www.sidefx.com]
Has a few methods
- intrinsicNames() returns global or detail intrinsics only.
- intrinsicReadOnly() and intrinsicSize() are undocumented and seem to only work with detail intrinsics.
- intrinsicValueDict() has all possible intrinsics, plus values of existing intrinsics, but without any information on the data, like Python can provide for normal point attributes, for example.

ginfo
In Shell, with the path set to the Houdini executables folder, ($HFS/bin), the command "ginfo -I" will return all possible intrinsics, detail and primitive. But once again no data type information.



VEX

string datts[] = detailintrinsic(0, "globaltokens") ;
string patts[] = primintrinsic(0, "primitivetokens") ;

printf("%s", datts) ;
printf("%s", patts) ;

Will print a similar list to ginfo -Iand intrinsicValueDict()'s "globaltokens" and "primitivetokens". But yet again no data type info, no writability info, or existing info.

So, bit frustrated with my attempts so far and would appreciate to know extra methods I may be missing.

Thanks.
Edited by probiner - 2025年6月9日 01:34:37
  • Quick Links