Hello!
Is there any way to have relative path string primvars used in a shader actually resolve either by using some sort of Context option or other dark magic I'm not aware of?
Say for instance if I had an asset authored with string primvars and I moved it to a different server location I would like to point the string primvar to something like "my.usd/../../textures/my_texture.png"?
It seems like USD would have a tough time resolving this but I'd love to be wrong.
Relative path for string primvar in Mtlx Shader
256 2 1-
- edlgm
- Member
- 25 posts
- Joined: Oct. 2020
- Online
-
- tamte
- Member
- 9573 posts
- Joined: July 2007
- Online
Id assume that if you author asset type primvar then it should be managed like any other asset path in LOPs
If you are authoring it from SOPs you can do that in SOP Import and specify your attrib in Asset Path Attributes instead of keeping it just as string
If you are authoring it from SOPs you can do that in SOP Import and specify your attrib in Asset Path Attributes instead of keeping it just as string
Edited by tamte - April 8, 2026 19:30:41
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- edlgm
- Member
- 25 posts
- Joined: Oct. 2020
- Online
tamte
Id assume that if you author asset type primvar then it should be managed like any other asset path in LOPs
If you are authoring it from SOPs you can do that in SOP Import and specify your attrib in Asset Path Attributes instead of keeping it just as string
That was it! Thank you Tomas!
Enrique De la Garza
CG Supervisor @Frame48
CG Supervisor @Frame48
-
- Quick Links

