Relative path for string primvar in Mtlx Shader

   200   2   1
User Avatar
Member
25 posts
Joined: Oct. 2020
Offline
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.
Enrique De la Garza
CG Supervisor @Frame48
User Avatar
Member
9572 posts
Joined: July 2007
Offline
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
Edited by tamte - April 8, 2026 19:30:41
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
25 posts
Joined: Oct. 2020
Offline
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
  • Quick Links