Autodesk / Autodesk/maya-usd

[EMSUSD-3043] Setting stage metadata value results in a Ill-formed SdfPath warning message

Open
#4,426 3 comments 0 reactions 1 assignee Claimed by @santosd View on GitHub
bug
Dominant language
Wolfram Language
Stars
905
Forks
223
Avg merge
2d 9h
Merged PRs (30d)
17

Description

**Describe the bug**
Setting stage metadata value results in a Ill-formed SdfPath warning message

**Steps to reproduce**
Steps to reproduce the behavior:

Execute this in maya's python editor:

```
import maya.cmds as cmds
import mayaUsd.lib as mayaUsdLib

cmds.createNode('mayaUsdProxyShape', skipSelect=True, name="abc")
stage = mayaUsdLib.GetPrim("abc").GetStage()
stage.SetMetadata('metersPerUnit', 1)
```
Result :

`# Warning: Ill-formed SdfPath <>: :1:1: parse error matching struct pxrInternal_v0_25_5__pxrReserved__::Sdf_PathParser::Path`

However, my stage metadata actually reflects the correct value.
Why do I get this warning message ?

**Specs (if applicable):**
- OS & version: Windows 11
- Maya version Maya 2026.3
- Maya USD 0.34.5
- Pixar USD 25.05

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.