ynput / ayon-houdini

Houdini addon for AYON
Apache License 2.0
11 stars 9 forks source link

Houdini: Combination of two extensions for loaders in pointcache product type #11

Open moonyuet opened 7 months ago

moonyuet commented 7 months ago

Is there an existing issue for this?

Current Behavior:

In Houdini, we are publishing the pointcache in either bgeo or abc format. We have two loaders(bgeo and abc) to load the cache in different formats respectively. These cause the issues of updating or switching assets if we dont have both bgeo or abc format published. The issues also block publishing assets with the asset, which is not at the latest version, where the validator (Validate Outdated Container) would check on the outdated container to ensure the version is at the latest.

Expected Behavior:

We expect to have just one loader plugin for pointcache product type which loads bgeo or abc format for the scene inventory tools to be concise on which format they are going to update/switch in pointcache product type

Version

1.0.0

What platform you are running on?

Windows

Steps To Reproduce:

  1. Publish pointcache(bgeo) wihout pointcache(abc)
  2. Publish pointcache(abc) without pointcache(bgeo)
  3. Have a new scene
  4. Load the pointache product type
  5. Go to Manage
  6. Update or Change Versions of the assets
  7. You will get the error below
    Traceback (most recent call last):
    File "D:\ayon-core\client\ayon_core\tools\sceneinventory\view.py", line 250, in <lambda>
    lambda: self._update_containers(items, version=-1)
    File "D:\ayon-core\client\ayon_core\tools\sceneinventory\view.py", line 822, in _update_containers
    update_container(item, item_version)
    File "D:\ayon-core\client\ayon_core\pipeline\load\utils.py", line 508, in update_container
    repre_name
    ValueError: Representation 'abc' wasn't found on requested version

    or

    Traceback (most recent call last):
    File "D:\ayon-core\client\ayon_core\tools\sceneinventory\view.py", line 250, in <lambda>
    lambda: self._update_containers(items, version=-1)
    File "D:\ayon-core\client\ayon_core\tools\sceneinventory\view.py", line 822, in _update_containers
    update_container(item, item_version)
    File "D:\ayon-core\client\ayon_core\pipeline\load\utils.py", line 508, in update_container
    repre_name
    ValueError: Representation 'bgeo' wasn't found on requested version

Are there any labels you wish to add?

Relevant log output:

No response

Additional context:

No response

[cuID:AY-4794]