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

   307   2   0
User Avatar
Member
1289 posts
Joined: 4月 2017
オフライン
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 - 2026年11月11日 14:42:42
-Olivier
User Avatar
Member
169 posts
Joined: 6月 2020
オフライン
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
1289 posts
Joined: 4月 2017
オフライン
Super! Thanks!
-Olivier
  • Quick Links