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

Bug: Unable to publish ass file from Maya in ayon #6050

Open
2 tasks done
krishna8008 opened this issue Dec 13, 2023 · 1 comment
Open
2 tasks done

Bug: Unable to publish ass file from Maya in ayon #6050

krishna8008 opened this issue Dec 13, 2023 · 1 comment
Labels

Comments

@krishna8008
Copy link

krishna8008 commented Dec 13, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

Unable to publish ass file from MAYA 2022.5 through ayon
image

Expected Behavior:

Ass should successfully get submitted

Version

3.17.7

What platform you are running OpenPype on?

Windows

Steps To Reproduce:

Open Maya 2022.5 through ayon
Create Ass publish type by choosing use selection.
publish using ayon

Are there any labels you wish to add?

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

Relevant log output:

DEBUG: Writing C:\Users\VENKAT~1.M\AppData\Local\Temp\pyblish_tmp_hvkqfenu\assAlien.ass with:
{'filename': 'C:\\Users\\VENKAT~1.M\\AppData\\Local\\Temp\\pyblish_tmp_hvkqfenu\\assAlien.ass', 'startFrame': 1001, 'endFrame': 1073, 'frameStep': 1.0, 'selected': True, 'asciiAss': False, 'shadowLinks': True, 'lightLinks': True, 'boundingBox': True, 'expandProcedurals': False, 'camera': '|ALN_SC_63_SH_0010_CameraABC_v002:ALN_SC_63_SH_0010_1001_1_1|ALN_SC_63_SH_0010_CameraABC_v002:ALN_SC_63_SH_0010_1001_1_1Shape1', 'mask': 61184}
DEBUG: Writing: []
DEBUG: Extracting ass sequence with: {'filename': 'C:\\Users\\VENKAT~1.M\\AppData\\Local\\Temp\\pyblish_tmp_hvkqfenu\\assAlien.ass', 'startFrame': 1001, 'endFrame': 1073, 'frameStep': 1.0, 'selected': True, 'asciiAss': False, 'shadowLinks': True, 'lightLinks': True, 'boundingBox': True, 'expandProcedurals': False, 'camera': '|ALN_SC_63_SH_0010_CameraABC_v002:ALN_SC_63_SH_0010_1001_1_1|ALN_SC_63_SH_0010_CameraABC_v002:ALN_SC_63_SH_0010_1001_1_1Shape1', 'mask': 61184}
Traceback (most recent call last):
File "C:\Users\venkatasiva.m\AppData\Local\Ynput\AYON\dependency_packages\ayon_2310271602_windows.zip\dependencies\pyblish\plugin.py", line 527, in __explicit_process
runner(*args)
File "C:\Users\venkatasiva.m\AppData\Local\Ynput\AYON\addons\openpype_3.17.7-nightly.7\openpype\hosts\maya\plugins\publish\extract_arnold_scene_source.py", line 74, in process
instance.data["contentMembers"], attribute_data, kwargs
File "C:\Users\venkatasiva.m\AppData\Local\Ynput\AYON\addons\openpype_3.17.7-nightly.7\openpype\hosts\maya\plugins\publish\extract_arnold_scene_source.py", line 192, in _extract
exported_files = cmds.arnoldExportAss(**kwargs)
File "C:\Users\venkatasiva.m\AppData\Local\Ynput\AYON\addons\openpype_3.17.7-nightly.7\openpype\hosts\maya\plugins\publish\extract_arnold_scene_source.py", line 2, in arnoldExportAss
RuntimeError: arnoldExportAss -selected needs an active selection or a list of objects

Additional context:

No response

[cuID:OP-7601]

@krishna8008 krishna8008 added the type: bug Something isn't working label Dec 13, 2023
@BigRoy
Copy link
Collaborator

BigRoy commented Dec 13, 2023

You also shared this JSON report on discord:

publish-report-231213-17-56.json.json

It doesn't find any members to export:

DEBUG: Writing: []

Which is logged as empty from here:

According to this it only allows nodes that are transforms with shapes. And since the nodes passed to the extract are the exact set members:

filenames, nodes_by_id = self._extract(
instance.data["contentMembers"], attribute_data, kwargs
)

Make sure to put into the instance the transforms of the meshes themselves, not parent hierarchy. So no parent groups, but the direct transforms of the meshes.


I believe @tokejepsen implemented the logic - so why it behaves like that is best referred to him.

But looking at the logic I suspect if you just select the geo in the viewport and drop that into the instance that it might likely export it.


So instead of this:

image

Add the members from the group into the instance that have direct mesh shapes as children.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants