Community
Arnold for Maya Forum
Rendering with Arnold in Maya using the MtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Undefined shaders when using set_parameter to set shader

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
CiroCardoso3v
371 Views, 8 Replies

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.

5713-1579176092275.png

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Tags (1)
Labels (1)
8 REPLIES 8
Message 2 of 9

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.





// Stephen Blair
// Arnold Renderer Support
Message 3 of 9

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.

5714-1579178248074.png

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Message 4 of 9

Export the scene to ass and verify the names

A shader is exported when it is assigned to something.



// Stephen Blair
// Arnold Renderer Support
Message 5 of 9

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

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Message 6 of 9
madsd
in reply to: CiroCardoso3v

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


5654-qweqweqwe.png

Message 7 of 9

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.

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Message 8 of 9
madsd
in reply to: CiroCardoso3v

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.

Message 9 of 9
CiroCardoso3v
in reply to: madsd

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.

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report