Remove usd primvars?

   1407   2   1
User Avatar
Member
48 posts
Joined: Aug. 2015
Offline
Anyone know how to remove primvars in usd? I've been looking over the documentation at https://openusd.org/dev/api/class_usd_geom_primvars_a_p_i.html [openusd.org] and specifically looked at USDGEOM_API bool RemovePrimvar(const TfToken & name)

It appears the TfToken converts a string path to the primvar to a token? Any support, ideas or further insight about this would be greatly appreciated.
User Avatar
Member
3 posts
Joined: Jan. 2010
Offline
you can use vex’s usd_blockprimvar and usd_blockprimvarindices to remove primvar
User Avatar
Member
183 posts
Joined: Jan. 2015
Offline
Some info about how to do it in Python here. [lucascheller.github.io].
Edited by Heileif - Dec. 6, 2024 18:29:16
  • Quick Links