Closed msf567 closed 1 month ago
The API was deprecated in v19.05 and removed in v22.08 --
https://github.com/PixarAnimationStudios/OpenUSD/blob/v22.08/CHANGELOG.md#usd
"Removed Primvar API on UsdGeomImageable which was deprecated in v19.03. All remaining uses of this API have been updated to use UsdGeomPrimvarsAPI."
Here is an example of the new API--
https://docs.omniverse.nvidia.com/kit/docs/kit-manual/105.1/guide/migration.html#usdgeom-imageable
PXR_NS::UsdStageRefPtr stage = PXR_NS::UsdStage::Open(boxUrl); PXR_NS::UsdPrim prim = stage->GetPrimAtPath(PXR_NS::SdfPath(“/Cube”)); PXR_NS::UsdGeomPrimvarsAPI primvarsAPI(prim); primvarsAPI.HasPrimvar(name); primvarsAPI.GetPrimvar(name); primvarsAPI.CreatePrimvar(name, PXR_NS::SdfValueTypeNames->Float);
Filed as internal issue #USD-9830
@jesschimein @asluk I'm wondering if this should be closed as not a bug.
See @asluk's helpful explanation for this question!
This is not properly linking against the method defined on line 202 of primvarAPI.h
The file is definitely included in my headers.
Interestingly, if I pull the function itself via UsdGeomPrimvarsAPI::GetPrimvar(), the compiler will recognize the function but of course will complain because it is not a static function.
What is going on?
How can I pull the UVs from a UseGeomMesh?