ScriptSpot

Forum topic · General Scripting

Mental Ray "Object Color" Shader

By GSSArchitecture · 2014-07-03

Description

Hi Guys,

No matter how much time i spend browsing the maxscript language reference, i cant find anything on the Object color shader which is in the material editor is in Maps>mental ray>object color

I really want to be able to assign this map in a script but cant for the life of me figure out how.

Thanks in advance,

Regards

Sam

Comments (2)

new

GSSArchitecture · 2014-07-04

Thanks barigazy it worked a treat!!!

barigazy · 2014-07-03

Try something like this


oc = Object_Color ()
showproperties oc

In the listener you will get list of all properties related to this map.
Next you can try:

meditMaterials[1] = Object_Color white:[255,0,0,0] black:[0,255,0,0]