Search - User list
Full Version: Relative path for string primvar in Mtlx Shader
Root » Solaris and Karma » Relative path for string primvar in Mtlx Shader
edlgm
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.
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
edlgm
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!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB