Skip to content

Loading workfow fixes and improvements#130

Open
jakubjezek001 wants to merge 5 commits into
developfrom
bugfix/loading-fixes
Open

Loading workfow fixes and improvements#130
jakubjezek001 wants to merge 5 commits into
developfrom
bugfix/loading-fixes

Conversation

@jakubjezek001

Copy link
Copy Markdown
Member

Changelog Description

  • Improving the workfow for situation where data are published at windows platform but needs to be loaded at Linux or MacOS.
  • adding user facing communication about unsupported files

Testing notes:

  1. Publish data into a testing project from Windows platform so you do have backward slashes in the representation path
  2. load into Flame and see that you do not get any error raise.
  3. Load any mov unsupported codec representation
  4. see that message will popup with Unsupported file type message.

@jakubjezek001 jakubjezek001 marked this pull request as draft June 23, 2026 09:24
- Sort imports alphabetically within groups
- Add docstring to ClipLoader.load_clip with Args and Raises
- Convert RuntimeError to LoadError with full traceback
- Fix layer name resolution to check sourceName fallback
@jakubjezek001 jakubjezek001 self-assigned this Jun 23, 2026
@jakubjezek001 jakubjezek001 added the type: enhancement Improvement of existing functionality or minor addition label Jun 23, 2026
@jakubjezek001 jakubjezek001 marked this pull request as ready for review June 23, 2026 11:59
) -> None:
layer_uid = xml_track_data.get("uid")
name_obj = (
xml_track_data.find("name")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is fix for case where the video file is supported but for some reason Flame is generating different kind of XML without the Name tag inside..

Comment thread client/ayon_flame/api/plugin.py Outdated
Comment on lines +789 to +799
except RuntimeError as exc:
import traceback
trcbck_txt = "".join(
traceback.format_exception(
type(exc), exc, exc.__traceback__
)
)
msg = (
"Unsupported Input: "
f"Flame does not support incoming media path {path} \n\n"
f"{trcbck_txt}"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

it is much better to use Loader native popup then the Flame one. Actually the Flame native is hidden under the Loader window and it is quite UX confusing.

self.log = logger

# could be windows path
path = path.replace("\\", "/")

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 don't think this is safe, \ can be used as an escape character on linux or macos. Where would the path come from?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

from represetnation files

Comment thread client/ayon_flame/api/plugin.py
Comment thread client/ayon_flame/api/plugin.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement Improvement of existing functionality or minor addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants