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

EMSUSD-1571 Manipulate prim schemas #4003

Closed
wants to merge 1 commit into from

Conversation

pierrebai-adsk
Copy link
Collaborator

Add new UFE helper functions:

  • Add the getKnownSchemas helper function to retrieve all known schemas.
  • Schemas are categorized by single and multi apply.
  • Schemas are described by their plugin name and schema type name.
  • Add the applySchemaToPrim and applyMultiSchemaToPrim helper functions.
  • Add a getPrimAppliedSchemas helper function to retrieve the applied schemas of a prim.
  • Add a getPrimsAppliedSchemas helper function to get all schemas of a set of prims.
  • Add a findSchemasByTypeName helper function to find a schema.
  • Expose the helper functions to Python.

Add unit tests:

  • Add a unit test to verify the schemas helper function.
  • Add unit tests for the schema application.

Add a command to manipulate prim schemas:

  • Add a mayaUsdSchema command.
  • Add undo/redo support to the schema command.
  • Document the mayaUsdSchema command and its flags in the Readme.md.
  • The -ufe flag to specify the prim UFE paths.
  • The -app (-appliedSchemas) flag to retrieve the already applied schemas.
  • The -sch (-schema) flag to specify which schema to add to the prims.
  • The -in (-instanceName) flag to specify the instance name of a multi-apply schema.
  • The -sas (-singleApplicationSchemas) flag to retrieve the list of known single-apply schemas.
  • The -mas (-multiApplicationSchemas) flag tto retrieve the list of known multi-apply schemas.
  • Add unit tests for the schema command.
  • Work around the bug in Maya 2022 Linux regarding parsing multi-use flags in commands executed from Python.

Add schemas menu:

  • Add a "Add Schema" menu item in the AE "Attributes" menu.
  • Create sub-item for each schema, organized by plugin.
  • Cleanup and prettify the plugin and schema names.
  • Sort plugin and schema names to have consistent menu item order.
  • Ask the user for the multi-apply schema instance name.
  • Adjust callback metadata to have a nice undo entry name.

@pierrebai-adsk pierrebai-adsk added ufe Related to UFE component in Maya ufe-usd Related to UFE-USD plugin in Maya-Usd labels Nov 16, 2024
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-1571/add-schemas-to-prims branch from b5b26ff to 459f69d Compare November 18, 2024 13:44
@pierrebai-adsk pierrebai-adsk self-assigned this Nov 18, 2024
@pierrebai-adsk pierrebai-adsk added the schema Related to core library schemas label Nov 18, 2024
Add new UFE helper functions:
- Add the getKnownSchemas helper function to retrieve all known schemas.
- Schemas are categorized by single and multi apply.
- Schemas are described by their plugin name and schema type name.
- Add the applySchemaToPrim and applyMultiSchemaToPrim helper functions.
- Add a getPrimAppliedSchemas helper function to retrieve the applied schemas of a prim.
- Add a getPrimsAppliedSchemas helper function to get all schemas of a set of prims.
- Add a findSchemasByTypeName helper function to find a schema.
- Expose the helper functions to Python.

Add unit tests:
- Add a unit test to verify the schemas helper function.
- Add unit tests for the schema application.

Add a command to manipulate prim schemas:
- Add a mayaUsdSchema command.
- Add undo/redo support to the schema command.
- Document the mayaUsdSchema command and its flags in the Readme.md.
- The -ufe flag to specify the prim UFE paths.
- The -app (-appliedSchemas) flag to retrieve the already applied schemas.
- The -sch (-schema) flag to specify which schema to add to the prims.
- The -in (-instanceName) flag to specify the instance name of a multi-apply schema.
- The -sas (-singleApplicationSchemas) flag to retrieve the list of known single-apply schemas.
- The -mas (-multiApplicationSchemas) flag tto retrieve the list of known multi-apply schemas.
- Add unit tests for the schema command.
- Work around the bug in Maya 2022 Linux regarding parsing multi-use
  flags in commands executed from Python.

Add schemas menu:
- Add a "Add Schema" menu item in the AE "Attributes" menu.
- Create sub-item for each schema, organized by plugin.
- Cleanup and prettify the plugin and schema names.
- Sort plugin and schema names to have consistent menu item order.
- Ask the user for the multi-apply schema instance name.
- Adjust callback metadata to have a nice undo entry name.
@pierrebai-adsk pierrebai-adsk removed their assignment Nov 18, 2024
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-1571/add-schemas-to-prims branch from 459f69d to f511d43 Compare November 18, 2024 14:52
@pierrebai-adsk pierrebai-adsk deleted the bailp/EMSUSD-1571/add-schemas-to-prims branch November 18, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
schema Related to core library schemas ufe Related to UFE component in Maya ufe-usd Related to UFE-USD plugin in Maya-Usd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant