maxwell render material

maxwell render material

clemens_at
Enthusiast Enthusiast
652 Views
3 Replies
Message 1 of 4

maxwell render material

clemens_at
Enthusiast
Enthusiast
Hey there guys,

I cant find ANY information anywhere concerning maxwell and maxscript.
I am also pretty new to programming so im sure there is an easy answer to this.

All i want to do is change the "Reflect.0" parameter of a newly created maxwell material.
When I enable macro recording i get this

meditMaterials.(null).(null).ReflectedColor = color 128 128 128


the (null) is what bothers me. if i paste it back again to rerun the script with - lets say color 20 20 20 - I get:

-- Syntax error: at (, expected name
-- In line: meditMaterials.(n


any help would be appreciated.

have a nice

-c
0 Likes
653 Views
3 Replies
Replies (3)
Message 2 of 4

barigazy
Enthusiast
Enthusiast
Are you try to get property of maxwell material
mtl = meditMaterials
show mtl
0 Likes
Message 3 of 4

clemens_at
Enthusiast
Enthusiast
No Info Found on: undefined


doesnt seem to work
0 Likes
Message 4 of 4

clemens_at
Enthusiast
Enthusiast
ok i figured it out by myself

the correct code is:

meditMaterials.layers.bsdfs.ReflectedColor = color r g b


have a nice
0 Likes