Write the version instead of "latest" into the AYON URI

This commit is contained in:
Roy Nieterau 2024-07-26 15:39:59 +02:00
parent a8a0161799
commit 073ab83e78

View file

@ -138,13 +138,14 @@ def get_instance_uri_path(
folder_path = instance.data["folderPath"]
product_name = instance.data["productName"]
project_name = context.data["projectName"]
version_name = instance.data["version"]
# Get the layer's published path
path = construct_ayon_entity_uri(
project_name=project_name,
folder_path=folder_path,
product=product_name,
version="latest",
version=version_name,
representation_name="usd"
)