VEX: check if attrib/primvar is blocked?
374 2 2-
- Tim Crowson
- Member
- 242 posts
- Joined: Oct. 2014
- Offline
-
- Tim Crowson
- Member
- 242 posts
- Joined: Oct. 2014
- Offline
Ah! Looks like I can just run usd_isattrib(), which seems to treat blocked attrs as 'invalid'.
https://www.sidefx.com/docs/houdini/vex/functions/usd_isattrib.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/vex/functions/usd_isprimvar.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/vex/functions/usd_isattrib.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/vex/functions/usd_isprimvar.html [www.sidefx.com]
Edited by Tim Crowson - July 25, 2024 14:22:41
- Tim Crowson
Technical/CG Supervisor
Technical/CG Supervisor
-
- robp_sidefx
- Staff
- 491 posts
- Joined: June 2020
- Offline
There *is* some "hidden" metadata, but I'm not sure we expose the blocked status in a way that's necessarily easily identified.
For example, if I block a Sphere prim's radius, I can query
Which returns
For example, if I block a Sphere prim's radius, I can query
usd_metadata(0, usd_makeattribpath(0, "/sphere1", "radius"), "default");
Which returns
0.0
, which is evidently our representation of Sdf.ValueBlock
.
Edited by robp_sidefx - July 26, 2024 10:39:55
-
- Quick Links