Add 'Approved version' to Houdini Loader HDA

Hello dear Ayoneers,

I created a PR with a implementation for having the ‘approved’ keyword in the AYON Loader version dropdown, in a similar fashion to the ‘latest’ keyword that is already there.

I have seen that this ‘approved’ selector appears already in the Ayon Scene Inventory, but I couldn’t figure out a nice way to reuse that code, as it is very dependent of the Scene Inventory dialog itself, however I think that allowing loaders to query the Scene Inventory would be the best approach, but that required a more involved PR.

Anyway, please have a look and let me know what do you think,

Thank you!

I actually think this may be irrelevant since we added latestDone to the resolve endpoint: Implement latestDone filter for usd resolve by kalisp · Pull Request #968 · ynput/ayon-backend · GitHub

Don’t we actually compute the version through that? :thinking:

Hello @BigRoy , thank you for your answer.

I am not sure I follow you here. How can I use that backend endpoint? Maybe that is the one used by the USD Resolver, as I know there is a “latest approved” option there, but using the USD Resolver is optional right?

I could not find a way to use that end point through the ayon-python-api, other than setting the query to look for specific statuses.

Maybe I am missing something here?

I thought this already goes through the actual resolve endpoint already?

Via here: ayon-houdini/client/ayon_houdini/api/hda_utils.py at 0783b30362f0c25f6502f66a143d1e232a09f876 · ynput/ayon-houdini · GitHub

So if version=latestDone was passed it should already resolve, assuming you’re on the recent server version. Right?

Might just be nice to add the latestDone to the HDA menu if we haven’t yet.

Damn, it does resolve!

I updated the PR :smiley:

oh I thought we have it already. it seems we add the new version alias in the backend but didn’t update it in the version selection in the houdini load HDAs.

Thanks for the PR.