Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set PathExpressionArray in Python #3046

Open
dgovil opened this issue Apr 18, 2024 · 2 comments
Open

Unable to set PathExpressionArray in Python #3046

dgovil opened this issue Apr 18, 2024 · 2 comments

Comments

@dgovil
Copy link
Collaborator

dgovil commented Apr 18, 2024

Description of Issue

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>>''
@jesschimein
Copy link
Contributor

Filed as internal issue #USD-9561

@nvmkuruc
Copy link
Collaborator

nvmkuruc commented Nov 7, 2024

@dgovil I believe @marktucker's fix would address this issue (#3309)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants