From 8971d078b3232053a68de9c45f5173d9a14f29c6 Mon Sep 17 00:00:00 2001 From: Fredrik Salomonsson Date: Fri, 9 Aug 2024 17:44:32 -0700 Subject: [PATCH] Fix two typos in the Asset Resolver code examples (#17) * Reference the correct variable in assetResolverStageContextResolve * Reference the correct variable in assetResolverResolve --- code/core/elements.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/core/elements.py b/code/core/elements.py index 8a36584..04ee612 100644 --- a/code/core/elements.py +++ b/code/core/elements.py @@ -1235,7 +1235,7 @@ def foo(stage): #// ANCHOR: assetResolverStageContextResolve resolved_path = stage.ResolveIdentifierToEditTarget("someAssetIdentifier") # Get the Python string -resolved_path_str = path.GetPathString() # Or str(resolved_path) +resolved_path_str = resolved_path.GetPathString() # Or str(resolved_path) #// ANCHOR_END: assetResolverStageContextResolve #// ANCHOR: assetResolverResolve @@ -1243,7 +1243,7 @@ def foo(stage): resolver = Ar.GetResolver() resolved_path = resolver.Resolve("someAssetIdentifier") # Get the Python string -resolved_path_str = path.GetPathString() # Or str(resolved_path) +resolved_path_str = resolved_path.GetPathString() # Or str(resolved_path) #// ANCHOR_END: assetResolverResolve #// ANCHOR: assetResolverAssetPath