How to key R,G,B of diffuse Mat
How do I get the controller property of the diffuse material on the selected object.
I know the simple solution here would be to just do a value change with Animate On but that can be buggy and I don't like doing that.
selfIll = $.material.diffuse.r.controller newKey = addNewKey selfIll 10 #select newKey.value = 10
Comments
I'm trying to make it more streamline
How can I access those key values without hard coding that particular key.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
slowly getting closer I believe.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
Hmm...
you asked for workaround with addNewKey()
but going with "ctrlRGB.r = (random 0 255)"
you back to the "animate on" method --
with animate on at time sliderTime ctrlRGB.r = (random 0 255)
..but if works well, why not? :)
my recent MAXScripts RSS (archive here)
try this
my recent MAXScripts RSS (archive here)
Great
That works great. Thanks Anubis,
I had tried several different ideas and none of them seemed to work.
Your solution how ever is just what i needed.
Thanks
John Martini
Digital Artist
http://www.JokerMartini.com (new site)