ScriptSpot

Script

MW RoofGen

By markwhelan · 2015-04-24

Version
2.0
Version requirement
3ds Max 2026 and up
Date updated
2026-04-14
Votes
15
Download
Download
Description

MW RoofGen 2 generates hip roof geometry from any closed spline outline in 3ds Max. Pick a shape, set a roof angle, hit Create. Optional UV generation maps each roof face with grounded slope projection - bottom edges sit at V=0 and UV scale is driven by world-unit width and height inputs.

 



Arbitrary Spline Input

RoofGen accepts any closed spline as input - simple rectangles, L-shapes, freeform outlines. The script resolves ridge intersections for each shape automatically. You can also generate roofs for multiple selected splines in one pass.

 


Grounded Slope UVs

Each roof face is UV-mapped independently with its bottom edge locked to V=0 and U=0 at the edge start. Coordinates are projected along the true slope surface so tile textures maintain correct proportions across different pitch angles. Width and height inputs set the real-world tile size.

Requirements:

3ds Max 2026 (or higher)

How to Use:

In 3ds Max 2026 (or higher), go to Scripting > Run Script... > Choose where ever you put "MW_RoofGen_2_XX.mse".

https://markwhelandev.com/tools

Tags: roof geometry spline generator

Comments (3)

tahir1983 · 2026-04-15

Great tool! Thanks! ..and what about generation from curved splines as it implemented in sketchup extentions!

great tool, but need improvement

harumscarum · 2025-01-23

amazing script - still work in max 2023
too bad it is abandoned

i would like to pay for some improvements of the latest version

- use Elements sub-object of single EditablePoly object instead of individual EditableSpline objects
- it will allow to create many roofs at once

helgajones · 2015-05-16

Nice post! Thank you for sharing this type of information. It looks realistic. I hope that you will be able to share more posts like this. Keep it up.