You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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":
and it should me more like:
(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:
Open Maya with simple scene and simple object like cube
Create Arnold Scene Source with use selection enabled
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
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.
Is there an existing issue for this?
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 likeCreateArnoldSceneSource
where we are expectingcontent_SET
andproxy_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":
and it should me more like:
(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 wholecreate()
method.Version
3.18.5-nightly.1
What platform you are running OpenPype on?
Windows
Steps To Reproduce:
RuntimeError: arnoldExportAss -selected needs an active selection or a list of objects
because the list is indeed empty, selection wasn't added tocontent_SET
content_SET
and publish again, publish should go through now.Are there any labels you wish to add?
Relevant log output:
No response
Additional context:
No response
[cuID:OP-7986]
The text was updated successfully, but these errors were encountered: