Workfiles tool: Fix copy of published workfile - #1989
Merged
Conversation
BigRoy
approved these changes
Aug 6, 2026
LiborBatek
requested changes
Aug 10, 2026
LiborBatek
left a comment
Member
There was a problem hiding this comment.
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)
Member
Author
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
self-requested a review
August 10, 2026 08:22
LiborBatek
approved these changes
Aug 10, 2026
LiborBatek
left a comment
Member
There was a problem hiding this comment.
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...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog Description
Use correct kwarg for representation path when copying published workfile.
Testing notes: