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
108 2 1-
- edlgm
- Member
- 25 posts
- Joined: 10月 2020
- オフライン
-
- tamte
- Member
- 9560 posts
- Joined: 7月 2007
- オフライン
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 - 昨日 19:30:41
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- edlgm
- Member
- 25 posts
- Joined: 10月 2020
- オフライン
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

