...if I knew how to write one I would. Unfortunately I don't. Does anyone know how to write one so that all mats in a scene set to 255 move down one value??? And out of curiousity, how long would something like that take to script up?
Announcement
Collapse
No announcement yet.
254 Mat Clamp Script
Collapse
X
-
254 Mat Clamp Script
Tags: None
-
probably be safer just making it into a button controlled from the utilities panel.
Comment
-
had something similar.. quick edit, so it will probably scream on objects that don't have a material.. but cheers.
works on current objects selected
Code:objs = selection as array for i=1 to objs.count do ( if (objs[i].material.diffuse.v == 255) do ( tmpColor = objs[i].material.diffuse tmpColor.v = 254 objs[i].material.diffuse = tmpColor strTmp = "Obj: " + (objs[i].name as string) + " --- Mat: " + (objs[i].material.name as string) + " --- DiffuseColor: " + (objs[i].material.diffuse as string) print strTmp ) )
Dave Buchhofer. // Vsaiwrk
Comment
-
it will probably scream on objects that don't have a material
Anyhow, thanks Dave! You are the script master. Unfortunately I'm a scriptkiddie virgin and have no clue how to even begin to use what you wrote.
Comment
-
learning every day and so far from master its not even funny
..but thanksDave Buchhofer. // Vsaiwrk
Comment
-
Hmmm. I'm beginning to wonder if Chaos tackled to fog issue in the .13 build...
Comment
-
Hey Eric, did you ever post that clamping script? I thought you did, but couldn't find it anywhere.
Comment
-
Comment