Just wondering if somebody could do a simple script to add a color correct map with the 2.2 gamma to all selected object's diffuse maps. I would be most grateful.
Announcement
Collapse
No announcement yet.
script for adding color correct
Collapse
X
-
Tags: None
-
first version - works on standard, raytrace and vray materials as well as multi subobjects. I'll add in more controls and stability later.
http://www.joconnell.com/stuff/vray_cc_01.ms
Run the script, customise your ui and you'll find it under John O'Connell tools.
-
Wow! That was fast
Now, I can't seem to get it to not add multiple colOUr correct maps per material. So far I get anywhere from 3 to 8 per material.
Is that my problem or the script problem?
Thanks so much!
Comment
-
Heya tim,
one of the current problems is that it literally takes whatever is in the diffuse and puts it into a colour correct map - I'll add in a check to make sure that there isn't already a colour correct map in there and if there is, simply adjust the gamma.
Comment
-
Originally posted by joconnellHeya tim,
one of the current problems is that it literally takes whatever is in the diffuse and puts it into a colour correct map - I'll add in a check to make sure that there isn't already a colour correct map in there and if there is, simply adjust the gamma.
We are doing an animation with our output gamma set to 2.2 and I am going to need to adjust a lot of car & plant texture maps accordingly. So if I can get this script to work for me it will be a piece of cake.
Comment
-
Okay here's a new version - the main difference is it checks the material to see if it has a colour correct already and if it does it only changes the gamma value. If it has any other type of texture instead, it'll nest that texture in a colour correct slot with the specified gamma. Previously if you kept running the script, it was quite dumb and would take whatever you had in the diffuse slot and put it into a colour correct so you would keep putting your current colour correct into another colour correct and you'd end up with as many colour corrects as button presses. The new version won;t do this anymore.
http://www.joconnell.com/stuff/vray_cc_02.ms
Comment
-
Thanks, I'll give it a shot. I wasn't using sub object mats at all.
The only other map in the material was in the opacity slot. I didn't try the script on a material without an opacity map, but I can't imagine why that would have messed it up.
Comment
-
Ok, I tried the new script and this time I just get a Maxscript Rollout Hander Exception: --Unknown property: "material" in $selection and then it highlites this line of the script if (classof $.material.texmap_diffuse != ColorCorrect) then
And nothing changes at all in the material now.
Comment
-
Ok, I think I figured out what the original problem was...I was testing the script on a group, all with the same material. So however many objects were in the group was how many times the color correct map was applied.
Now, as far as the 2nd script goes, I don't have a clue about that.
Comment
-
Ok, it works, but still doesn't prevent multiple layers. However, this is great still, and thank you so much for doing this!
Comment
Comment