AnimalLogic / AL_USDMaya

This repo is no longer updated. Please see https://github.com/Autodesk/maya-usd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make makeUsdPath() handle namespace in DAG path

dbaz opened this issue · comments

Please make makeUsdPath() in Maya->USD export facility handle namespaces in DagPaths somehow. The SdfPath in USD doesn't like colons, which are used as namespace separators in Maya. The current implementation returns an empty SdfPath as that's exactly what SdfPath::SdfPath() leaves when presented with an invalid path.

For example:

MDagPath makeDagPath(const char*);
makeUsdPath(makeDagPath("|a|b"), makeDagPath("|a|b|c:d")); // returns empty SdfPath

@aloysbaillet