/*
----------------------------------------------------------------------------------------
Script Name: AO Bake Swap
Filename: SP_Bakescripts_AOBakeSwap
Version: v1.00
----------------------------------------------------------------------------------------
Purpose:
- Moves AO style bakes from composite
Category:
- Bake Scripts
Compatibility:
- Max 2016-2017. Should work in most other versions
Code by:
- Michael Vladimir Nicolayeff
- SmallpolyArtist@gmail.com
- http://www.scriptspot.com/users/smallpoly
----------------------------------------------------------------------------------------
Change Log
- v0.x -- 20YY.MM.DD -- Description
- v0.1 -- 2017.05.08 -- Initial Version. Created UI and tooltips.
- v0.2 -- 2017.05.09 -- Added main functionality
- v0.9 -- 2017.05.09 -- Now works on a selection. Removed print statements.
- v1.0 -- 2017.05.11 -- Added support for flat diffuse colors. Added support for multi-materials
----------------------------------------------------------------------------------------
Description:
- Designed primarily for use with WorldViz software.
- On a baked material outputting to Standard:Blinn, copies the lightmap from the Ambient map slot, and the
diffuse map from the Diffuse slot into a new Composite material using the selected blending mode. (e.g. Multiply).
Usage:
- Select the already baked objects you want to do the conversion on. Select the blending mode. Hit "Convert" to convert
the materials on that object.
Limitations:
- Resetting the materials assumes that the composite maps contain both a diffuse map and a lightmap, with the
lightmap over the diffuse. Avoid using on objects that have this kind of material.
Known Bugs:
- Doesn't seem to work with Undo
ToDo:
-
*/