# PathResolverContext().Get() is empty

**URL:** https://forum.aousd.org/t/pathresolvercontext-get-is-empty/2785
**Category:** USD
**Created:** [December 2, 2025, 11:32pm UTC](https://forum.aousd.org/t/pathresolvercontext-get-is-empty/2785 "2025-12-02T23:32:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jonassorgenfrei](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@jonassorgenfrei](https://forum.aousd.org/u/jonassorgenfrei)
#### Post date: [December 2, 2025, 11:32pm UTC](https://forum.aousd.org/t/pathresolvercontext-get-is-empty/2785/1 "2025-12-02T23:32:18Z")

</div>

Hey

we are trying to make out resolver working in Nuke (14.1). when trying to get the resolver from the stage via:  
`stage=geo_python.stage()`  
`contexts=stage.GetPathResolverContext().Get()`

We get an empty list.

In the same application opening a new stage via:  
`pinning_stage = Usd.Stage.Open(pinning_file)` `print(pinning_stage.GetPathResolverContext().Get())`

returns us:  
[CustomResolverCustomResolverContext([‘/searchpath’])]

What can be the reaseon that the Resolver Context attribute of a stage has an empty list?  
`stage.GetPathResolverContext().Get()`

Thanks for your help in advance.  
Cheers  
Jonas

---

<div class="post-metadata">

### Author: ![spiff](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.aousd.org/spiff/32/22_2.png) [@spiff](https://forum.aousd.org/u/spiff)
#### Post date: [December 3, 2025, 12:18am UTC](https://forum.aousd.org/t/pathresolvercontext-get-is-empty/2785/2 "2025-12-03T00:18:39Z")

</div>

First guess is that the way Nuke is constructing that geo\_python stage is thwarting Stage::Open’s default strategy of calling the primary resolver’s `GetDefaultContextForAsset()` method that presumably your plugin is implementing. You can always pass a context to an Open() method, so if Nuke is creating an empty one, that could explain it?

---

<div class="post-metadata">

### Author: ![jerry.huxtable](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jerry.huxtable](https://forum.aousd.org/u/jerry.huxtable)
#### Post date: [December 3, 2025, 3:55pm UTC](https://forum.aousd.org/t/pathresolvercontext-get-is-empty/2785/3 "2025-12-03T15:55:51Z")

</div>

Nuke isn’t opening a stage with Stage.Open, it creates an empty stage using Stage.CreateInMemory, hence the empty asset resolver context. Later versions of Nuke have a mechanism to set the asset resolver context for the stage going down the graph, but not in Nuke 14, sadly.

Jerry
