OSL preprocessor include search paths

OSL preprocessor include search paths

Anonymous
Not applicable
577 Views
1 Reply
Message 1 of 2

OSL preprocessor include search paths

Anonymous
Not applicable

Hello,
right now the #include macro seems to search for included files in the same folder as the OSL shader is located.

Is it possible to set a custom directory for include sarch path? Setting ARNOLD_PLUGIN_PATH does not work for me.

Oslc compiler supports this parameter: -Ipath Add path to the #include search path . So compiling the shader myslef would solve the problem, but I like the automatic way of Arnold's compiling, which saves a bit of time and simplifies the workflow.

Best,
Juraj

0 Likes
578 Views
1 Reply
Reply (1)
Message 2 of 2

Stephen.Blair
Community Manager
Community Manager

There's currently no way to set header search paths to the automatic compilation.

For now, you'll have to use oslc



// Stephen Blair
// Arnold Renderer Support
0 Likes