question

Zeno Pelgrims avatar image
Zeno Pelgrims asked ·

Set light_color_shader through operator in houdini

Hi,


I'm trying to set the light_color_shader parameter (ar_light_color_shader) on a skydome through an operator. I can't seem to get it to work. I assume it's because the ar_light_color_shader is a houdini concept and gets translated to the arnold universe in a different way. I imagine 'shader' is the parameter that needs to be set.


However, I'm struggling to assign a shader to the skydome this way. How should this be set up? I'm currently seeing the pink shader not found when using a set_parameter shader with arguments: shader='/path/to/shader/OUT_light'. Should I be using the OUT_light, or OUT_material node? I cannot seem to get either to work.


When I point the the ar_light_color_shader parameter to the OUT_light node it does seem to work. But how should this be done using an operator? Maybe I'm missing something obvious.


Thanks!

lightshaderhoudinioperator
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Zeno Pelgrims avatar image
Zeno Pelgrims answered ·

It works with an assign_material operator. Not really sure why there'd be a difference.

10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Julian Hodgson avatar image
Julian Hodgson answered ·

The assign_material operator assigns the root of the shader node graphs created by the material. This is required since these will have different names from the material itself.

10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered ·

Operators work on Arnold nodes and parameters, so a raw set_parameter won't know about ar_light_color_shader.

If you look at an ass file, you should see your shader connected to the skydome.color parameter, that's what you would set with a set_parameter

10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.