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

Ability to route prim metadata edits #3778

Open
jufrantz opened this issue May 22, 2024 · 0 comments
Open

Ability to route prim metadata edits #3778

jufrantz opened this issue May 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jufrantz
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Currently, maya-usd supports routing various operations to a USD layer. For instance we can route attribute edits and target a layer based on the edited prim and attribute name. However, it does not yet support routing prim metadata which would be beneficial for some workflows.

Our first usecase is routing variant selections: some of our variants configure the stage just for the artist work and should be routed to the stage's session, while others need to be public and target identified layers.

Describe the solution you'd like

We would like to be able to register a custom editRouter for "primMetadata" edits, similar to the current support for attributes. the router could consider the metadata name and the edited key path for dictionary-valued metadata like VariantSelection.

A fist look of the UFE code suggests that it could be added to the following commands:

  • SetVariantSelection
  • Set kind
  • Toggle instanceable
  • Prim reorder
  • Add/Clear payload/reference
  • Set/Clear SceneItemMetadata

Describe alternatives you've considered

Overriding standart context ops to execute custom commands, eg a custom SetVariantSelectionCommand.

Additional context

We have implemented it on our end for a custom command. If we haven't overlooked anything, we should be able to file a PR straightforwardly.

Would you consider accepting this enhancement as a PR?

@jufrantz jufrantz added the enhancement New feature or request label May 22, 2024
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

1 participant