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

Maya: Creators with specific sets won't move selection there on creation #6149

Open
2 tasks done
antirotor opened this issue Jan 18, 2024 · 0 comments
Open
2 tasks done
Labels
host: Maya type: bug Something isn't working

Comments

@antirotor
Copy link
Member

antirotor commented Jan 18, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

Using creator that defines specific sets to organize data with "use selection" option won't work without additional corrections, because the selection is not moved to the right set by default. Most (if not all) creators in Maya inherits from the MayaCreator that just moves selection to the set representing the publishing instance. In creators like CreateArnoldSceneSource where we are expecting content_SET and proxy_SET, they are left empty and the publishing will fail in Extraction phase on error related to missing data that is directly caused by empty sets.

This is the default (and wrong) behaviour of "use selection":
image

and it should me more like:
image

(the first case will crash during the extraction).

There are other creators that are dealing with that by overriding the MayaCreator:create() method mostly just because of this.

Expected Behavior:

Selection handled by MayaCreator should be in separate method to allow creator plugins override logic dealing with the selection without the need to override the whole create() method.

Version

3.18.5-nightly.1

What platform you are running OpenPype on?

Windows

Steps To Reproduce:

  1. Open Maya with simple scene and simple object like cube
  2. Create Arnold Scene Source with use selection enabled
  3. Try to publish - it will fail with RuntimeError: arnoldExportAss -selected needs an active selection or a list of objects because the list is indeed empty, selection wasn't added to content_SET
  4. Manually move cube to content_SET and publish again, publish should go through now.

Are there any labels you wish to add?

  • I have added the relevant labels to the bug report.

Relevant log output:

No response

Additional context:

No response

[cuID:OP-7986]

@antirotor antirotor added type: bug Something isn't working host: Maya labels Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
host: Maya type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant