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 #4000

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.
  • The plugin names are optionally prettified, by default.
  • 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.

Add schemas menu:

  • Add a "Add Schema" menu item in the AE "Attributes" menu.
  • Create sub-item for each schema, organized by plugin.
  • Sort plugin and schema names to have consistent menu item order.
  • Make sure to cleanup and prettify the plugin and schema names.
  • 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 adsk Related to Autodesk plugin ufe Related to UFE component in Maya ufe-usd Related to UFE-USD plugin in Maya-Usd labels Nov 14, 2024
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-1571/add-schemas-to-prims branch from dde3c83 to 6227db4 Compare November 14, 2024 21:46
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-1571/add-schemas-to-prims branch from 6227db4 to 9e4d221 Compare November 14, 2024 23:01
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-1571/add-schemas-to-prims branch from 9e4d221 to 1262b13 Compare November 15, 2024 14:26
@pierrebai-adsk pierrebai-adsk self-assigned this Nov 15, 2024
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-1571/add-schemas-to-prims branch from 1262b13 to 468ef4a Compare November 15, 2024 15:49
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-1571/add-schemas-to-prims branch from 468ef4a to a95008b Compare November 15, 2024 15:57
@pierrebai-adsk pierrebai-adsk self-assigned this Nov 15, 2024
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-1571/add-schemas-to-prims branch from a95008b to 4f65861 Compare November 15, 2024 17:46
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-1571/add-schemas-to-prims branch from 4f65861 to 247b885 Compare November 15, 2024 18:43
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-1571/add-schemas-to-prims branch from 247b885 to 148ddef Compare November 15, 2024 19:41
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-1571/add-schemas-to-prims branch from 148ddef to 2bd4a44 Compare November 15, 2024 20:41
@pierrebai-adsk pierrebai-adsk self-assigned this Nov 15, 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 force-pushed the bailp/EMSUSD-1571/add-schemas-to-prims branch from 2bd4a44 to 98018a9 Compare November 15, 2024 21:40
@pierrebai-adsk pierrebai-adsk deleted the bailp/EMSUSD-1571/add-schemas-to-prims branch November 16, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin 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