Skip to content

EMSUSD-3876 create empty component#4665

Merged
seando-adsk merged 1 commit into
devfrom
bailp/EMSUSD-3876/create-empty-component
Jul 14, 2026
Merged

EMSUSD-3876 create empty component#4665
seando-adsk merged 1 commit into
devfrom
bailp/EMSUSD-3876/create-empty-component

Conversation

@pierrebai-adsk

Copy link
Copy Markdown
Collaborator
  • Added a isAdskUsdComponentCreatorAvailable helper function.
  • Added a menu item to create a component in the layer editor in the Maya session state implementation.
  • Made the menu item conditional on the availability of the component creator.
  • Added a hasComponentCreator helper MEL function.
  • Added createComponent Python function to create an empty component.
  • Added mayaUsdCreateComponent and mayaUsdCreateComponentOptions Maya run-time commands, calling the Python function.
  • Changed the exception catching when importing the Python component creator module to catch all exceptions, since the CC might not be loaded for other reasons too, for example the DLL might not be found or might not match the USD version.

- Added a `isAdskUsdComponentCreatorAvailable` helper function.
- Added a menu item to create a component in the layer editor in the Maya session state implementation.
- Made the menu item conditional on the availability of the component creator.
- Added a `hasComponentCreator` helper MEL function.
- Added `createComponent` Python function to create an empty component.
- Added `mayaUsdCreateComponent` and `mayaUsdCreateComponentOptions` Maya run-time commands, calling the Python function.
- Changed the exception catching when importing the Python component creator module to catch all exceptions, since the CC might not be loaded for other reasons too, for example the DLL might not be found or might not match the USD version.
@pierrebai-adsk pierrebai-adsk added the adsk Related to Autodesk plugin label Jul 13, 2026
@pierrebai-adsk pierrebai-adsk self-assigned this Jul 13, 2026
@pierrebai-adsk pierrebai-adsk requested a review from deboisj July 13, 2026 17:06
Comment thread plugin/adsk/scripts/mayaUsd_createComponent.py
Comment thread lib/mayaUsd/utils/utilComponentCreator.cpp

@deboisj deboisj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comments/suggestions, looks good.

@pierrebai-adsk pierrebai-adsk added ready-for-merge Development process is finished, PR is ready for merge and removed ready-for-merge Development process is finished, PR is ready for merge labels Jul 13, 2026
@seando-adsk seando-adsk added shared_components Shared Components (Max / Maya) and removed adsk Related to Autodesk plugin labels Jul 14, 2026
@seando-adsk seando-adsk merged commit 152b6f5 into dev Jul 14, 2026
12 checks passed
@seando-adsk seando-adsk deleted the bailp/EMSUSD-3876/create-empty-component branch July 14, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge Development process is finished, PR is ready for merge shared_components Shared Components (Max / Maya)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants