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

Implement selection in the Viewer #27

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BigRoy
Copy link
Owner

@BigRoy BigRoy commented Nov 29, 2023

Feature

Here's a quick test to get mouse clicks in the viewer to be able to select prims inside the view - porting some of the functionality from USD View itself.

Note however that since it relies on USD View's data model it requires pxr.Usdviewq and thus this particular data model can't be used with e.g. usd-core. For this prototype it's not an issue because this currently only applies to the viewer widget which itself can also only work if that library is present.

Nonetheless for #25 we would need a data model that can be shared between all widgets. The question then becomes whether we want to completely roll our own data model so it can be separate from pxr.Usdviewq dependency or unfortunately maybe make the USD viewer a requirement itself.


@Sasbom with this PR you're at least able to click around in the viewport to e.g. select some prims and then press F to frame selected or A to frame all.

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

Successfully merging this pull request may close these issues.

1 participant