I’m trying to create an asset with a Path Expression array
I thought this code should work, but it errors out
array = prim.CreateAttribute("array", Sdf.ValueTypeNames.PathExpressionArray, custom=False)
array.Set([Sdf.PathExpression("Hello"), Sdf.PathExpression("World")])
The error is
Error in 'pxrInternal_v0_24__pxrReserved__::UsdStage::_SetValueImpl' at line 6723 in file /Users/dhruvgovil/Projects/usd/pxr/usd/usd/stage.cpp : 'Type mismatch for </root.array>: expected 'VtArray<SdfPathExpression>', got '__1::vector<VtValue, __1::allocator<VtValue>>''
Just wondering if anyone has set PathExpressions in an array and knows how to wrap it properly in Python to get it across the binding boundary?
I don’t see a corresponding array type in the Vt module either. Is this case unsupported via Python?