-
Notifications
You must be signed in to change notification settings - Fork 206
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
dual selection mode for adaptors #6103
Comments
I've been thinking about this some this afternoon and have a few follow-up questions. If you select a prototype in the viewer and drag onto a node, say an Isolate node, to set its PathFilter, what would you want to be dropped into that filter? Would it be the prototype, I suspect that what you want to get when dragging from the viewer would be the same as when dragging from the hierarchy view, is that correct? And similar considerations for things like using transforms in the viewer or making edits in Edit Scopes. If you select something in the hierarchy view or viewer, what should those changes be applied to? I think it would make sense in most (all?) cases to be dealing with prototypes for the actual stored selection, since that's all that users will be able to affect since they're upstream of the adapter. But I want to make sure I understand your setup. |
i think you're right, that we'd want to drag the prototype. We're definining a new selection mode called 'Instancer/Prototypes` so that makes sense for this case and if the artist wants to select and drag the instancer path then they would use the standard selection mode. And for the hierarchy view we'd expect the selection to the the location of the prototype, so pretty much the same. Hopefully that helps outline our workflow a little more clearly, let me know if you have any other questions! |
Summary
the ability to overwrite selection (SelectionTool.registerSelectMode ) is very useful but may not work for all situations, eg. if you're altering the scene graph via the use of an adaptor. we're currently using an adaptor to auomatically generate all of the USD instances in the viewer which is very handy but we lose the ability to select the prototypes from the view and vice versa.
User story
What
On selection of an expanded instance in the viewer, the corresponding prototype should be picked in the hierarchy view. And when the prototype in the hierarchy view is selected that all corresponding prototypes get selected.
#### Viewer Selection ####
current implementation for viewer selection is implemented in the following way, which works great but the mesh doesn't stay selected alongside the prototype in the hierarchy.
/Standard selection
Instances/Prototypes selection
#### Hierarchy Selection ####
hierarchy selection is done through a pop-up context menu on the hierarchy view which works and selects the instances but then deselects the prototype in the hierarchy view.
Why
This is the current behaviour when using a USDInstancer in the graph so replication of the behaviour is needed as not to introduce a less equivalent workflow.
Feature proposal
being able to maintain or return multiple selections would be one possible solution. and have a similar feature for hierarchy view so that we don't have to use a context menu.
Example scenario(s)
Both scenarios would allow us to put in a hook/callback so that selection would be maintained in the current hierarchy views structure and the hidden that exists from the adaptor adapting the scene graph.
Implementation notes
(Optional) Add any relevant technical notes.
The text was updated successfully, but these errors were encountered: