prman-pixar / RenderManForBlender

RenderMan for Blender render addon
MIT License
804 stars 134 forks source link

Option to change default texture path to absoloute in prefs #637

Closed TzurH closed 2 years ago

TzurH commented 2 years ago

Could this be added, please?

Right now when we add a pxrTexture, we get a relative path by default, using the token. That is problematic in some situations, would be good to have the ability in prefs to change this behavior.

For example, I work with this folder structure, where I have a layout scene that I only reference assets to. Each asset has its own .blend file. If I use the token, texture paths get broken in the layout scene... I'm not sure why? image

To showcase, here's an asset I "append" with tokens. All paths are broken. image

prman-pixar commented 2 years ago

So you just want a pref to always put in the real/absolute path?

TzurH commented 2 years ago

So you just want a pref to always put in the real/absolute path?

Yeah, if that's doable.

prman-pixar commented 2 years ago

@TzurH I pushed a change for this. Let me know if it doesn't work for you.

TzurH commented 2 years ago

@prman-pixar Thanks for the fix! Works as expected.