Skip to content

Workfiles tool: Fix copy of published workfile - #1989

Merged
iLLiCiTiT merged 5 commits into
developfrom
bugfix/copy-published-workfiles
Aug 10, 2026
Merged

Workfiles tool: Fix copy of published workfile#1989
iLLiCiTiT merged 5 commits into
developfrom
bugfix/copy-published-workfiles

Conversation

@iLLiCiTiT

Copy link
Copy Markdown
Member

Changelog Description

Use correct kwarg for representation path when copying published workfile.

Testing notes:

  1. It is possible to copy published workfile using Workfiles tool.

@iLLiCiTiT iLLiCiTiT self-assigned this Aug 6, 2026
@iLLiCiTiT iLLiCiTiT added the type: bug Something isn't working label Aug 6, 2026

@kalisp kalisp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy works.

@LiborBatek LiborBatek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It gave me an error msg while trying the Copy&Open func in maya host app..

# Traceback (most recent call last):
#   File "C:\Work\REPO\ayon-core\client\ayon_core\tools\workfiles\models\workfiles.py", line 225, in copy_workfile_representation
#     self._host.copy_workfile_representation(
#   File "C:\Work\REPO\ayon-core\client\ayon_core\host\interfaces\workfiles.py", line 1412, in copy_workfile_representation
#     self._copy_workfile(
#   File "C:\Work\REPO\ayon-core\client\ayon_core\host\interfaces\workfiles.py", line 1531, in _copy_workfile
#     self.open_workfile_with_context(
#   File "C:\Work\REPO\ayon-core\client\ayon_core\host\interfaces\workfiles.py", line 1036, in open_workfile_with_context
#     self.open_workfile(filepath)
#   File "C:\Users\lbate\AppData\Local\Ynput\AYON\addons\maya_0.6.10\ayon_maya\api\pipeline.py", line 145, in open_workfile
#     return open_file(filepath)
#            ^^^^^^^^^^^^^^^^^^^
#   File "C:\Users\lbate\AppData\Local\Ynput\AYON\addons\maya_0.6.10\ayon_maya\api\workio.py", line 25, in open_file
#     return cmds.file(filepath, open=True, force=True)

However there appear to be the resulting file v003 after a while...author been missing tho (not related probably)

Image

@iLLiCiTiT

Copy link
Copy Markdown
Member Author

It gave me an error msg while trying the Copy&Open func in maya host app..

Doesn't look like related to this PR, please verify if the issue happens in develop, if it does please try this in a different DCC.

@LiborBatek
LiborBatek self-requested a review August 10, 2026 08:22

@LiborBatek LiborBatek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made more testing and also with other host app blender and all seesm good.

It was probably caused by maya error caused by missing plugin...

Good to go I guess...

@iLLiCiTiT
iLLiCiTiT merged commit e6f2df0 into develop Aug 10, 2026
2 checks passed
@iLLiCiTiT
iLLiCiTiT deleted the bugfix/copy-published-workfiles branch August 10, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants