Hi everyone,
We are happy to share with you a Max Script that will help you unwrap your meshes for light bake. With this script you can batch create a new map channel and unwrap selected meshes. The newly created UVs will be then used for lightmaps in Unreal when light baking.
When you install this script, you can add it in your toolbar by drag and dropping it from ІІCustomizeІІ > Customize User Interface > Toolbars > Main UI > VRay > Auto unwrapper.
The Auto unwrapper uses Max's Flatten UV functionality so if the meshes have large amount of polys Max itself will not be able to handle it and will probably freeze/crash. With that in mind we added a threshold for amount of polygons and objects that have larger amount than the specified will be skipped in the unwrapping process. After the unwrap process is completed, all meshes that have been skipped are stored in a selection set for easier selection. The options in the dialogue box of the script have tooltips with descriptions of the functionality. Each time you execute the "Unwrap with flatten" option, an autoUnwrapper.lol file is generated in C:\Users\USER_NAME\AppData\Local\Autodesk\3dsMax\V ERSION - 64bit\ENU\en-US\plugcfg that lists all processed meshes, their location and timestamp for star/end of unwrap process for each mesh.
Feel free to modify the script in any way you see fit and all suggestions are welcomed for its polishing.
Best regards,
Alexander
P.S. Updated download link - https://drive.google.com/file/d/1ETi...ew?usp=sharing
We are happy to share with you a Max Script that will help you unwrap your meshes for light bake. With this script you can batch create a new map channel and unwrap selected meshes. The newly created UVs will be then used for lightmaps in Unreal when light baking.
When you install this script, you can add it in your toolbar by drag and dropping it from ІІCustomizeІІ > Customize User Interface > Toolbars > Main UI > VRay > Auto unwrapper.
The Auto unwrapper uses Max's Flatten UV functionality so if the meshes have large amount of polys Max itself will not be able to handle it and will probably freeze/crash. With that in mind we added a threshold for amount of polygons and objects that have larger amount than the specified will be skipped in the unwrapping process. After the unwrap process is completed, all meshes that have been skipped are stored in a selection set for easier selection. The options in the dialogue box of the script have tooltips with descriptions of the functionality. Each time you execute the "Unwrap with flatten" option, an autoUnwrapper.lol file is generated in C:\Users\USER_NAME\AppData\Local\Autodesk\3dsMax\V ERSION - 64bit\ENU\en-US\plugcfg that lists all processed meshes, their location and timestamp for star/end of unwrap process for each mesh.
Feel free to modify the script in any way you see fit and all suggestions are welcomed for its polishing.
Best regards,
Alexander
P.S. Updated download link - https://drive.google.com/file/d/1ETi...ew?usp=sharing
Comment