Skip to content

Save scene needs to give name during the publishing #434

Description

@moonyuet

Has been tested in both maya 2026 and maya 2027 all seems working fine now.

Before approval, there was a one occasion in maya 2026 and saving scene issue so rather posting it as it might be actually connected to this PR?

Traceback (most recent call last):
  File "C:\Users\lbate\AppData\Local\Ynput\AYON\dependency_packages\ayon_2510271030_windows.zip\dependencies\pyblish\plugin.py", line 528, in __explicit_process
    runner(*args)
  File "C:\Users\lbate\AppData\Local\Ynput\AYON\addons\maya_0.6.5+dev\ayon_maya\plugins\publish\save_scene.py", line 34, in process
    cmds.file(save=True, force=True)
RuntimeError: A file must be given a name before saving. Use file -rename first, then try saving again.

Enclosing the full Json publish report here:

Maya-publish-report-260513-11-24.json.txt

Let me know if unrelated or not...and I will approve...

Originally posted by @LiborBatek in #433 (review)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions