ynput / ayon-houdini

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

Houdini: Switch HDA version manually #12

Open MustafaJafar opened 7 months ago

MustafaJafar commented 7 months ago

Is there an existing issue for this?

Current Behavior:

Houdini users can change filepath in HDA definition. which allows them to swap between different versions. While the inventory tool doesn't detect such change.

Animation_52

Expected Behavior:

As a user I expected some live updates. where Inventory tool can show the real version based on my selection.

Version

1.0.0

What platform you are running on?

Windows

Steps To Reproduce:

  1. publish HDA multiple times from Houdini.
  2. change path manually from asset definition.

Are there any labels you wish to add?

Relevant log output:

No response

Additional context:

No response

[cuID:AY-5263]

BigRoy commented 4 months ago

This could be solved by ON publish and saving of the HDA secretly imprint it with the parms needed for the containerization (like give it the representation id, etc.) so that if you just create it - it has those attributes.

As such, switching versions would also switch these vaues?

MustafaJafar commented 5 days ago

This issue happens because we are adding the parameters after node creation (spare parameters) and spare parameters are not updated when changing the HDA definition manually.

I can think of two solutions:

  1. As @BigRoy mentioned earlier, we can add these parameters on publishing so that they be part of the definition.
  2. We can add a callback on HDA creation/publishing that takes care of updating the Extra parameters when changing the asset definition.