Remove usd primvars?

   1444   2   1
User Avatar
Member
48 posts
Joined: 8月 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: 1月 2010
Offline
you can use vex’s usd_blockprimvar and usd_blockprimvarindices to remove primvar
User Avatar
Member
183 posts
Joined: 1月 2015
Offline
Some info about how to do it in Python here. [lucascheller.github.io].
Edited by Heileif - 2024年12月6日 18:29:16
  • Quick Links