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

Convenience function for printing the list of queried composition arcs in order #652

Merged
merged 2 commits into from
Jul 14, 2020

Conversation

HamedSabri-adsk
Copy link
Contributor

Often time I need to debug the queried composition arcs in C++ and this function helps to pretty-print them.

Same thing can also be achieved in python. See testUsdPrimCompositionQuery here :

https://github.com/PixarAnimationStudios/USD/blob/ebac0a8b6703f4fa1c27115f1f013bb9819662f4/pxr/usd/usd/testenv/testUsdPrimCompositionQuery.py#L28

@HamedSabri-adsk HamedSabri-adsk added the ufe-usd Related to UFE-USD plugin in Maya-Usd label Jul 12, 2020
@HamedSabri-adsk HamedSabri-adsk requested a review from ppt-adsk July 12, 2020 17:11
@@ -137,4 +186,23 @@ hasSpecs(const UsdPrim& prim)
return found;
}


void
printCompositionQuery(const UsdPrim& prim)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be useful to pass in an std::ostream&, instead of forcing use of std::cout.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ppt-adsk please see de4ed7c

@kxl-adsk kxl-adsk merged commit 461668a into dev Jul 14, 2020
@kxl-adsk kxl-adsk deleted the sabrih/usd_utility_functions branch July 14, 2020 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ufe-usd Related to UFE-USD plugin in Maya-Usd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants