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
Create render instance (I've didn't created any render layers beforhand, just relied on default Main)
Publish
Are there any labels you wish to add?
I have added the relevant labels to the bug report.
Relevant log output:
File "C:\Users\annat\AppData\Local\Ynput\AYON\dependency_packages\ayon_2402271655_windows.zip\dependencies\pyblish\plugin.py", line 527, in __explicit_process
runner(*args)
File "C:\Users\annat\Documents\Projects\Ayon\ayon-core\client\ayon_core\hosts\maya\plugins\publish\collect_inputs.py", line 131, in process
containers = self._collect_renderlayer_inputs(scene_containers,
File "C:\Users\annat\Documents\Projects\Ayon\ayon-core\client\ayon_core\hosts\maya\plugins\publish\collect_inputs.py", line 184, in _collect_renderlayer_inputs
query=True,
RuntimeError: 'Main' is not a render layer.
Additional context:
This happended during testing of ynput/ayon-core#113 but I don't think it is related
I can confirm that the merge of ynput/ayon-core#113 introduced this bug. Had a successful running tests before this merge. After the merge this bug is introduced to the publishing.
I can confirm that the merge of ynput/ayon-core#113 introduced this bug. Had a successful running tests before this merge. After the merge this bug is introduced to the publishing.
I was digging into the code and couldn't find exact point where it is broken by that PR. Fix should be easy, but to not to introduce some side effects, it would be nice to find it.
Is there an existing issue for this?
Current Behavior:
Creating simple rendering instance and publishing will result in Collect Inputs crashing (see log below).
This stems from Maya classic - naming of render layers:
rs_Main
vs.Main
.Expected Behavior:
Collector shouldn't crash and it should use the correct name. These lines are expecting
rs_
prefixed layer name:https://github.com/ynput/ayon-core/blob/73568637348ed92310bbff7cfc90121cb396e4fc/client/ayon_core/hosts/maya/plugins/publish/collect_inputs.py#L183-L185
But it is getting it from here:
https://github.com/ynput/ayon-core/blob/73568637348ed92310bbff7cfc90121cb396e4fc/client/ayon_core/hosts/maya/plugins/publish/collect_render.py#L255
and it is now producing not prefixed name.
Version
1.0.0
What platform you are running on?
Windows
Steps To Reproduce:
Are there any labels you wish to add?
Relevant log output:
Additional context:
This happended during testing of ynput/ayon-core#113 but I don't think it is related
[cuID:AY-2541]
The text was updated successfully, but these errors were encountered: