Skip to content

Commit

Permalink
Fix two typos in the Asset Resolver code examples (#17)
Browse files Browse the repository at this point in the history
* Reference the correct variable in assetResolverStageContextResolve

* Reference the correct variable in assetResolverResolve
  • Loading branch information
plattfot authored Aug 10, 2024
1 parent 414f607 commit 8971d07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/core/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -1235,15 +1235,15 @@ 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
from pxr import Ar
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
Expand Down

0 comments on commit 8971d07

Please sign in to comment.