madesjardins / Obq_Shaders

Obq_Shaders for Arnold
53 stars 9 forks source link

hi how can i install Obq_shader by using environment variables? #13

Open tws0002 opened 7 years ago

tws0002 commented 7 years ago

Hi,

Can I install Obq_shader by using environment variables? instead of copy everything into the Arnold folder!!

for example ARNOLD_PLUGIN_PATH=C:\solidangle\alShaders\bin MTOA_TEMPLATES_PATH=C:\solidangle\alShaders\ae

Thanks Desmond

madesjardins commented 7 years ago

I never did, but you can probably add the OBQ dir path to arnold's shaders path so it will look for shaders there. ALShaders might have a more detailed env install instructions. Tell me how it goes. Cheers.

On Mar 28, 2017 10:51 AM, "Desmond" notifications@github.com wrote:

Hi,

Can I install Obq_shader by using environment variables? instead of copy everything into the Arnold folder!!

for example ARNOLD_PLUGIN_PATH=C:\solidangle\alShaders\bin MTOA_TEMPLATES_PATH=C:\solidangle\alShaders\ae

Thanks Desmond

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/madesjardins/Obq_Shaders/issues/13, or mute the thread https://github.com/notifications/unsubscribe-auth/AC2EtBayWDwtKWhNjk-cqVR5IFFj-YUXks5rqR6MgaJpZM4MrvSq .

AndrewHazelden commented 7 years ago

If you are using the Obq_Shaders soley inside of Maya and MtoA you could also create an Obq_Shaders.mod Maya module file for loading the shaders.

Depending on how you layout your Obq_Shaders folder the module file would look a bit like this:

+ Obq_Shaders 1.0 C:\solidangle\Obq_Shaders
ARNOLD_PLUGIN_PATH+:=shaders
MTOA_TEMPLATES_PATH+:=ae
MAYA_SCRIPT_PATH+:=ae
PYTHONPATH+:=ae

[r] presets: presets
[r] icons: icons
tws0002 commented 7 years ago

Hi thanks for the reply.

hey Andrew how can I load .mod file into maya? (sorry never use .mod before) bcos I try to keep everything in server drive so everyone in the studio can load without install to each system.

Thanks Desmond

madesjardins commented 7 years ago

Simply add .mod dir to MAYA_MODULE_PATH.

On Mar 29, 2017 11:07 AM, "Desmond" notifications@github.com wrote:

Hi thanks for the reply.

hey Andrew how can I load .mod file into maya? (sorry never use .mod before) bcos I try to keep everything in server drive so everyone in the studio can load without install to each system.

Thanks Desmond

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/madesjardins/Obq_Shaders/issues/13#issuecomment-290120060, or mute the thread https://github.com/notifications/unsubscribe-auth/AC2EtM3D10HCZJ3mFZT6b3qEwozct-VDks5rqnO0gaJpZM4MrvSq .

AndrewHazelden commented 7 years ago

Hi Desmond.

A Maya Module file is a text file with the .mod extension. It can go in the shared modules folder, the Autodesk Maya program's own modules folder, or the user prefs Maya modules folder:

C:\Program Files\Autodesk\Maya<Version>\modules\ C:\Program Files\Common Files\Autodesk Shared\Modules\Maya\<Version> C:\Users\<User Name>\Documents\maya\<Version>\modules

and as @madesjardins commented you can also define your own modules environment path variable "MAYA_MODULE_PATH" entry, too.

These help pages on Maya module files should help get you started.

Autodesk Around the Corner Blog - Distributing files on Maya - Maya modules

Maya Help Topic on Modules: