VEX: Best way to check if primitive is packed? {[SOLVED]}

   163   2   0
User Avatar
Member
1280 posts
Joined: April 2017
Offline
Is there a function to tell if a prim is packed?

Or, is there a function like hasprimattrib but for intrinsics?(that way, I could check if packedfulltransform exist...)
Edited by olivierth - Nov. 11, 2026 14:42:42
-Olivier
User Avatar
Member
167 posts
Joined: June 2020
Offline
You can use primintrinsic() to check typename.

Something like this:
i@packed = re_find("Packed", primintrinsic(0, "typename", i@primnum));

But you could check for PackedGeometry / PackedFragment specifically if you need.
User Avatar
Member
1280 posts
Joined: April 2017
Offline
Super! Thanks!
-Olivier
  • Quick Links