Convert Normal Maps
Version 1.7
Simple script that converts any NormalBump map to VRayNormalMap and vice versa.
This tool works on any object in the scene with assigned VRay material.
Requested here: http://www.scriptspot.com/forums/3ds-max/scripts-wanted/switch-maps-text...
>>> Update v1.4 (max2010+):
- affect only selected objects or convert all scene materials
- preserve instances
- optimized code
>>> Update v1.5 (max2014+):
- added support for gamma override (works in max2014 and up)
- optimized code
>>> Update v1.6 (max2014+):
- optimized code
- fixed some bugs requested by TwilightZoney
NOTE: script will close MEditor before start converting process.
>>> Update v1.7 :
- rewritten code from scratch
- supports max 2017 and vray 3+
NOTE: all new parameters of VRay NormalMap will be converted to standard normal map and vice versa. Also make sure to save the scene before use this tool ;)
Attachment | Size |
---|---|
bga_convertnormalmaps_v1.4.ms | 1.75 KB |
bga_convertnormalmaps_v1.5.ms | 2.33 KB |
bga_convertnormalmaps_v1.6.ms | 2.69 KB |
bga_convertnormalmaps_v1.7.ms | 2.95 KB |
bga_convertnormalmaps_v1.7.mcr | 3.05 KB |
Comments
Error
Thanks again for your response! but unfortunately It didn't work with me and I got this error:
-- Error occurred in mtl loop; filename: ; position: 1386; line: 33
-- Frame:
-- mtl: #Multi/Sub-Object:male_03(VRayMtl:body, VRayMtl:Head, VRayMtl:case, VRayMtl:metal, VRayMtl:cigaret)
-- called in map loop; filename: ; position: 1386; line: 33
-- Frame:
-- map: Map #3:VRayNormalMap
-- e: Map #3:Normal Bump
-- called in btn.pressed(); filename: ; position: 1393; line: 34
-- Frame:
-- Array: #(Map #3:VRayNormalMap)
-- node: (DataPair a:Normal_Bump b:VRayNormalMap)
>> MAXScript Rollout Handler Exception:
-- Unknown property: "texmap_bump" in #Multi/Sub-Object:male_03(VRayMtl:body, VRayMtl:Head, VRayMtl:case, VRayMtl:metal, VRayMtl:cigaret) <<
My Config.: Max 2014 + V-Ray 3
thanks to scriptspot community
Test scene and error message
Test scene and error message
...
Can you send me test scene and error message?
bga
I have test with V1.1 and
I have test with V1.1 and V1.2.
It works with the first multisub material only then the script was error
...
Thank for suggestion. I just added this option in v1.2
bga
One nice adicion is to be
One nice adicion is to be able to force the normal map gamma.
Nice script btw
http://www.3dbybrunolopes.com
http://www.facebook.com/3dbybrunolopes
...
Hey Mustafa try v1.1. I think that all works fine now ;)
bga
+1
thanks so much for your help ..
I did a quick test and it's working with vraymatl but it didn't work at multisub materials .. could you fix it please?
also if possible to add option for Appying the script on selected objects or all scene materials ..
Thanks again!
Regards,
Mustafa
thanks to scriptspot community