Convert Normal Maps

7 votes
Version: 
v1.7
Date Updated: 
04/14/2017
Author Name: 
Branko Živković


Version 1.7
Simple script that converts any NormalBump map to VRayNormalMap and vice versa.

Additional Info: 

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 ;)

Version Requirement: 
max2014+ vray 2+ vray 3+
AttachmentSize
bga_convertnormalmaps_v1.4.ms1.75 KB
bga_convertnormalmaps_v1.5.ms2.33 KB
bga_convertnormalmaps_v1.6.ms2.69 KB
bga_convertnormalmaps_v1.7.ms2.95 KB
bga_convertnormalmaps_v1.7.mcr3.05 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mustafa mamdouh's picture

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

obbboo's picture
barigazy's picture

...

Can you send me test scene and error message?

bga

obbboo's picture

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

barigazy's picture

...

Thank for suggestion. I just added this option in v1.2

bga

3dbybrunolopes's picture

One nice adicion is to be

One nice adicion is to be able to force the normal map gamma.
Nice script btw

barigazy's picture

...

Hey Mustafa try v1.1. I think that all works fine now ;)

bga

mustafa mamdouh's picture

+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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.