Skip to content

Conversation

@BigRoy
Copy link
Contributor

@BigRoy BigRoy commented Dec 27, 2024

Changelog Description

Exposes a dedicated creator that exports a Maya USD export as a "model" product type.

Additional review information

TL;DR

We have a long history of a model product type creator in Maya, focused on exporting static geometry to Maya Scene and Alembic. Now we also want to include USD exports, but also allow the Maya USD contribution workflow to trigger, etc.

This is one potential approach to do so.

Detailed

This now allows to publish USD products with USD contributions as a "model" product type, e.g. a modelMain as part of the usdAsset's model layer and also have it trigger the model product type validations.

It's good to know however that a few validators will need to be disabled in settings for this product type to make sense (otherwise it wouldn't pass the model validations).

In particular disable:

ayon+settings://maya/publish/ValidateNoNamespace
ayon+settings://maya/publish/ValidateTransformNamingSuffix

This is because the top group should be the asset name without suffix (so it should not be e.g. _GRP suffix) and the creators' "asset template hierarchy" it creates starts with a namespace to allow publishing multiple model asset contributions separately from the one scene (without having a group name conflict between the two groups in the scene).

Also, if ONLY the USD should be exported from this product type instead of also the Maya Scene and Alembic, then disable the extractors:

ayon+settings://maya/publish/ExtractModel
ayon+settings://maya/publish/ExtractAlembic/families <- remove the model family

There happened to also be a way to export a USD previously from the model family which should also be disabled:

ayon+settings://maya/publish/ExtractMayaUsdModel

That behavior where the existing model creator would export USD however had the issue that:

  • The USD Contribution workflow wouldn't trigger, because it triggers on usd family - not on model product type.
  • The creator doesn't expose the "Create Asset Template Hierarchy" pre-create feature to simplify creating the correct USD asset structure in the scene outliner (correct grouping)
  • The creator doesn't expose all relevant MayaUSD export settings toggles - however, one could argue that maybe those shouldn't have been Creator attributes to begin with.

Fix #207

Testing notes:

  1. Publish the special Maya USD Model product type with asset contribution workflow, etc.

@BigRoy BigRoy marked this pull request as ready for review December 10, 2025 10:51
@BigRoy BigRoy requested review from LiborBatek and removed request for dee-ynput December 10, 2025 10:52
@BigRoy
Copy link
Contributor Author

BigRoy commented Dec 10, 2025

@antirotor @philippe-ynput we may need to brainstorm a bit about potentially having settings templates/presets. The validators upon "models" that AYON is set to by default in Maya are not necessarily all relevant to publishing a USD model (because hierarchy structure tends to differ from the 'old days'). As can be seen in the PR description, there's quite a few settings to change to ensure publishing USD models from Maya to USD as model product type is easily done.

Another approach could be to start changing the 'validators' so that they don't target model but e.g. model.legacy or model.alembic or something akin to that and tagging the older Creator with that family additionally so that it includes those validations. That would only ever makes sense if e.g. model product type in USD never requires those validations.

BigRoy and others added 2 commits December 17, 2025 21:58
@BigRoy
Copy link
Contributor Author

BigRoy commented Jan 5, 2026

@LiborBatek can you give this a go please?

Copy link
Member

@LiborBatek LiborBatek left a comment

Choose a reason for hiding this comment

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

I have tested it within maya 2026 and all been working correctly.

I was able to publish a USD model and also load it via loader into my scene...

image image

Seems fine to me...

@BigRoy BigRoy merged commit b271322 into ynput:develop Jan 5, 2026
1 check passed
@BigRoy BigRoy deleted the enhancement/usd_create_profiles branch January 5, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement Improvement of existing functionality or minor addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add USD export with USD asset contribution workflow with e.g. model product type

3 participants