Skip to content

Fix(load_ociolook): strip extension before suffix match#253

Merged
rdelillo merged 2 commits into
ynput:developfrom
LittleBlackStarVisualEffects:bugfix/ociolook-cube-not-found
May 12, 2026
Merged

Fix(load_ociolook): strip extension before suffix match#253
rdelillo merged 2 commits into
ynput:developfrom
LittleBlackStarVisualEffects:bugfix/ociolook-cube-not-found

Conversation

@krishnaavril
Copy link
Copy Markdown
Contributor

Should fix the error when loading the published OCIOlook

  File "/home/avril9950x3d/.local/share/AYON/addons/core_1.9.1+lbs.1/ayon_core/tools/loader/models/actions.py", line 1005, in _load_representations_by_loader
    load_with_repre_context(
  File "/home/avril9950x3d/.local/share/AYON/addons/core_1.9.1+lbs.1/ayon_core/pipeline/load/utils.py", line 327, in load_with_repre_context
    return loader.load(repre_context, name, namespace, options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/avril9950x3d/.local/share/AYON/addons/core_1.9.1+lbs.1/ayon_core/pipeline/load/plugins.py", line 430, in wrapped_method
    result = original_method(self, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/avril9950x3d/.local/share/AYON/addons/nuke_0.4.8/ayon_nuke/plugins/load/load_ociolook.py", line 61, in load
    group_node = self._create_group_node(
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/avril9950x3d/.local/share/AYON/addons/nuke_0.4.8/ayon_nuke/plugins/load/load_ociolook.py", line 184, in _create_group_node
    raise ValueError(
ValueError: File with extension 'cube' not found in directory```

Comment thread client/ayon_nuke/plugins/load/load_ociolook.py Outdated
@BigRoy BigRoy requested review from jakubjezek001 and rdelillo May 11, 2026 07:26
@BigRoy BigRoy added type: bug Something isn't working community Issues and PRs coming from the community members labels May 11, 2026
@rdelillo rdelillo merged commit 2ecee81 into ynput:develop May 12, 2026
1 check passed
@rdelillo
Copy link
Copy Markdown
Contributor

Thanks a lot @krishnaavril for this !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Issues and PRs coming from the community members type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants