Clear type name of a PrimSpec in Python

Hello,

I am reading in a USD file using only the Sdf API (i.e. I would like to avoid to create a stage object) and would like to clear the typeName of a specific PrimSpec.
The ‘ClearTypeName()’ method seems not to be exposed in the Python API and setting the typeName to “” result in the Error
…/primSpec.cpp : 'Cannot set empty type name on prim '…
What would be the correct way to do this ?

Many thanks!
Marcel

@mreinhard Have you tried calling SdfSpec::ClearInfo with "typeName" as the key?

1 Like

Awesome! I had not tried tried that and that worked nicely!
Thank you very much, @nvmkuruc !