question

Ciro Cardoso avatar image
Ciro Cardoso asked ·

Undefined shaders when using set_parameter to set shader

I am trying to implement Arnold Operators on my workflow. I am following one of the tutorials to understand how it works, etc.


One of the things I find useful is assigning materials based on the geometry name. So as you can see below I have the blue material assigned to all teapot and I want to assign a red material based on their names. However I am getting this purple material and I don't understand why.

operator
1579176092275.png (642.4 KiB)
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 ·

magenta means that the shader does not exist

Either the name is wrong, or the shader is not exported. As a test, assign that red material to something else in the scene.

I don't think MAXtoA exports unassigned shaders...but I'd have to check to be sure.



Share
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.

Mads Drøschler avatar image
Mads Drøschler answered ·

I set up some thingies, try look how to get there via this video.

https://www.dropbox.com/s/hregdt24i5gdp3d/operator_color.mp4?dl=0



qweqweqwe.png (511.4 KiB)
Share
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.

Ciro Cardoso avatar image
Ciro Cardoso answered ·

Thanks @ and @

Yeah, I noticed then I need to assign the shaders to something on the scene before using the operators. However, sometimes I need to restart the activeshade to actually seem them. Would be nice to have a couple of more examples of how to use these operators. I don't think everyone is aware of the full potential of this tool.

2 comments Share
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.

One of the better approaches to something new is often, to ask the system a lot of conrete questions to see how well it responds to your demands.
Sorta like, this example you found out.
Next, you want to demand something else, concrete. It could be that you add 2 search criterias. Name and for example size, seen from a rule set that could be "select the smallest first, then search upwards ) - This controlled with a float value for example.

0 Likes 0 · ·

That is amazing. I never thought you could do something like that. I just have to say that on the documentation would be nice to mention that the materials need to be already on scene. Nowhere mentions that, thus my confusion.

0 Likes 0 · ·
Ciro Cardoso avatar image
Ciro Cardoso answered ·

Ok, it seems that I need to restart ActvieShade to see the shader gets assigned and I do need to assign the material to something in the scene. Not entirely practically

Share
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 ·

Export the scene to ass and verify the names

A shader is exported when it is assigned to something.

Share
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.

Ciro Cardoso avatar image
Ciro Cardoso answered ·

I tried that. Like here for example. The red material is assigned to the sphere, but the anvil gets the purple colour. How do I export the shader? The help section doesn't mention anything about that.


1579178248074.png (617.7 KiB)
Share
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.