# Getting empty string when trying to get resolvedPath of UDIM path

**URL:** <https://forum.aousd.org/t/getting-empty-string-when-trying-to-get-resolvedpath-of-udim-path/406>\
**Category:** USD\
**Tags:** rendering, python\
**Created:** [August 21, 2023, 8:47pm UTC](https://forum.aousd.org/t/getting-empty-string-when-trying-to-get-resolvedpath-of-udim-path/406 "2023-08-21T20:47:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quaxo](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.aousd.org/quaxo/32/85_2.png) [@Quaxo](https://forum.aousd.org/u/Quaxo)\
**Post date:** [August 21, 2023, 8:47pm UTC](https://forum.aousd.org/t/getting-empty-string-when-trying-to-get-resolvedpath-of-udim-path/406/1 "2023-08-21T20:47:49Z")

</div>

Title says it all, I have a usda file like UsdUVTexture like:

```auto
def Shader "bla"
{
     uniform token info:id = "UsdUVTexture"
     asset inputs:file = @udimsfolder/udim_texture_<UDIM>.jpg@
     ....
}

```

and somewhere in my code i do:

```auto
file_attr = usd_texture.GetInput('file')
if file_attr:
     file_path = file_attr.Get().resolvedPath
     texture.filename = file_path
     ....

```

and no matter if the UDIM path is relative or absolute, I always get an empty string returned by the “.resolvedPath” call. I searched around the archives to see if others came across similar issues and there seem to have been but not quite the same. Is the behavior I am seeing expected/normal?

---

<div class="post-metadata">

**Author:** ![dhruvgovil](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.aousd.org/dhruvgovil/32/3_2.png) [@dhruvgovil](https://forum.aousd.org/u/dhruvgovil)\
**Post date:** [August 21, 2023, 9:08pm UTC](https://forum.aousd.org/t/getting-empty-string-when-trying-to-get-resolvedpath-of-udim-path/406/2 "2023-08-21T21:08:12Z")

</div>

Hi @Quaxo , welcome to the forum.  
Unfortunately, the UDIM resolution is left up to the renderer.

USD itself doesn’t have a UDIM resolver so the empty string is due to failed resolution.

If you’re trying to resolve this without a renderer doing it for you, the easiest method is probably querying the raw string and substituting the UDIM token yourself, then asking usd to resolve that.

---

<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:** [August 21, 2023, 9:24pm UTC](https://forum.aousd.org/t/getting-empty-string-when-trying-to-get-resolvedpath-of-udim-path/406/3 "2023-08-21T21:24:19Z")

</div>

That’s right, and USD will do “the best it can”, i.e. if the authored path is an “anchored path” like  
@./udimsfolder/udim\_texture\_.jpg@ , the returned SdfAssetPath that the UsdAttribute gives you will have already performed the anchoring to the layer’s location for you, so you will get back a different and more complete string than the one that was authored, but the “” will still be there for you to resolve yourself.
