Closed
Conversation
b5b26ff to
459f69d
Compare
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.
459f69d to
f511d43
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add new UFE helper functions:
Add unit tests:
Add a command to manipulate prim schemas:
Add schemas menu: