Skip to content

mayaUSDImport primPath with parent hierarchy #1063

Answered by kxl-adsk
agelosc asked this question in Q&A
Discussion options

You must be logged in to vote

I couldn't find a satisfying way that wouldn't involve a code change. It all boils down to the traversal that the import job is doing. When prim path is provided, we only traverse the subset. Another way around would be to provide a predicate to the traversal and filter all the prims that aren't under given path OR aren't being a parent namespace. The place where such a predicate would need to be set is here

UsdPrimRange range(usdRootPrim, predicate);
(and that would replace the default one we are currently providing).

It is all untested, but by looking at the code that's where I would start. Hope it helps.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by agelosc
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants