Trying to read a USD (usdtoobj) file but getting this error message:
(TfDiagnosticType)1: in _CreateResolver at line 158 of /Volumes/Projects/Dev/USD/pxr/usd/ar/resolver_v1.cpp – Invalid resolver type
(TfDiagnosticType)1: in _RegisterFormatPlugins at line 189 of /Volumes/Projects/Dev/USD/pxr/usd/sdf/fileFormatRegistry.cpp – Failed verification: ’ !formatBaseType.IsUnknown() ’
(TfDiagnosticType)1: in _CreateNew at line 422 of /Volumes/Projects/Dev/USD/pxr/usd/sdf/layer.cpp – Failed verification: ’ fileFormat ’
Hello @amir_tamadon! Right now, usdObj is not ‘formally’ packaged as part of Omniverse Kit/Create. The developers are currently discussing how to include it in future releases.
@amir_tamadon Sorry, we don’t ship c++ header/APIs yet. We’ll get back to you later if we have any decision for future release. Right now, you’d have to use python APIs. Or you’d have to load those APIs from DLL or SO directly, which you can get from extension omni.kit.asset_converter under your Create install. But that’s too tricky.
@amir_tamadon After discussion, we have other solution for you, you can call python snippet from c++ still. There is an python helper that’s shipped with Create or Kit SDK, which is included inside the include dir named “omni/kit/PythonInterOpHelper.h”. You can refer that to build your python helper in c++ to call the example provided above to convert your asset.