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

Selection Mask to limit selection to specific kinds #3425

Closed
philsloggett opened this issue Oct 31, 2023 · 5 comments
Closed

Selection Mask to limit selection to specific kinds #3425

philsloggett opened this issue Oct 31, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@philsloggett
Copy link

philsloggett commented Oct 31, 2023

When doing layout work typically you're only interested in selecting the root prim of any referenced asset. This prim should be marked as a Component kind. Selecting specific children, (e.g. panels of a car, leaves of a tree, clothes of a character, etc) can lead to accidental offsets that can be difficult to undo or zero out, when all that was intended was to place the car, tree, character within the stage.

Some other applications allow you to choose which kinds are available for viewport selection, which is incredibly important for artists to be able to select objects in the viewport they intend to be interacting with.

Ive been able to work around this with a selection-changed callback. As a user selects any prim we step up through the USD hierarchy until it hits a prim of kind "component" and manages the selection list to select this instead of the prim the user clicked on. This works to an extent - the big limitation being that an object can't be deselected in the viewport, as when a descendent prim is reselected there is no way of knowing the intent was to deselect its parent Component.

I believe this could only be correctly implemented in the plugin itself.

@philsloggett philsloggett added the enhancement New feature or request label Oct 31, 2023
@santosg87
Copy link
Collaborator

@philsloggett we currently do have an implementation of a selection by kind, which i believe does what you are expecting to see:
Screenshot 2023-10-31 at 1 09 03 PM

is that selection not behaving as expected for you?

@philsloggett
Copy link
Author

philsloggett commented Nov 1, 2023

That works perfectly thank you @santosg87 (possibly some bugs in the "Instances" mode when editing pointinstancer, thoughIm not intending to use that just yet and will report separately as I understand that issue better) embarassed I hadnt found that menu.

@philsloggett philsloggett closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2023
@womanyoyoyo-adsk
Copy link
Collaborator

Hi @philsloggett, don't be embarrassed. It just tells us that it's not intuitive to find. You can tear off the menu by clicking the dotted lines on top of the submenu and keep it handy. Out of curiosity, where would in the UI were you expecting to find it?

@philsloggett
Copy link
Author

Hey good question @womanyoyoyo-adsk

Im a reasonably experienced Maya user (~17 or so years) and truthfully I never go in to the "Select" menu. The few menuitems in there I would actually use frequently (select inverse, object/component toggle, shrink/grow selection) I'd lean on hotkeys for.

To me the most analogous, pre-existing, maya concept is selection masking which I'd expect to see in the status bar something like these.
image (72)
image (71)

If Im being honest I dont find maya's "select by hierarchy: root" option all that intuitive either - but that is where I looked just because I was aware there was similar maya feature there.

Its dumb and obvious but I just didnt think to look in the Select menu :)

Im also clicking around the outliner on the proxy shape and various prims, and right clicking on shapes in the viewport to see what kind of options jump out at me there.

Appreciate the question!

@womanyoyoyo-adsk
Copy link
Collaborator

Thanks for this info @philsloggett.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants