When trying to save scenes that contain OpenPype UUIDs in representations Nuke was catching this error and not allowing you to save the scene:
Traceback (most recent call last):
File "/sw/nuke/15.0v4/plugins/nuke_internal/callbacks.py", line 92, in onScriptSave
_doCallbacks(onScriptSaves)
File "/sw/nuke/15.0v4/plugins/nuke_internal/callbacks.py", line 46, in _doCallbacks
f[0](*f[1],**f[2])
File "/home/lmenga/.local/share/AYON/addons/nuke_0.2.4-ax.2/ayon_nuke/api/lib.py", line 844, in check_inventory_versions
for repre_entity in repre_entities:
File "/pipe/ayon/release/current/dependencies/ayon_api/server_api.py", line 5967, in get_representations
for parsed_data in query.continuous_query(self):
File "/pipe/ayon/release/current/dependencies/ayon_api/graphql.py", line 380, in continuous_query
raise GraphQlQueryFailed(
ayon_api.exceptions.GraphQlQueryFailed: GraphQl query Failed: Invalid entity ID 6500f58ef1d7617e88ffc758 on item 'project/representations' (Line 3 Column 5)
Traceback (most recent call last):
This PR fixes it by reusing existing functions that already address this issue.
How to test
Create a scene and copy some nodes that contain OpenPype UUIDs
@fabiaserra I've committed the suggested changes to your fork - thanks for allowing open commits. It's been tested with older OpenPype containers and everything works well.
Description
When trying to save scenes that contain OpenPype UUIDs in representations Nuke was catching this error and not allowing you to save the scene:
This PR fixes it by reusing existing functions that already address this issue.
How to test