3D R.n.D | MaxScript | road offsetter

2 votes
Date Updated: 
Author Name: 
Bayan al Safadi

This Script will Automatically create main road lanes based on selected spline

Run script or drag and drop to 3ds max, a dialog is created with some input parameters:

- number of lanes.

- Lane width.

- Yellow lanes distance.

- Enable Yellow lanes ?

- Flip direction ?

select 1 spline (( as subobject level )) modify the inputs as you need then press (( Offset it ! )) button !

the splines created has material id applied to them as follows :

Edge splines with ID = 1

Normal white separators with ID = 2

Yellow splines with ID = 3

-- Version : 1.2

Whats New:

performance optimization and ability to apply the script to 1 or more splines in spline subobjectlevel.

huge thanks to Obaida for helping me optimizing this script.. please consider visiting his gumroad and youtube channel





Subscribe to my YouTube channel:


follow me on instagram :


This software is provided on an "as is" basis, without warranty of any kind, express or implied, including without limitation, any implied warranties of merchantability, The entire risk as to the quality and performance of the software is borne by you, and it is your responsibility to ensure that it does what you require it to do prior to using it, The author is not responsible for any indirect, special, incidental, or consequential damages of any character including, without limitation, damages for loss of goodwill, Work stoppage, computer failure or malfunction, or any and all other commercial damages or losses.

Copyright : © 2009-2021 3D | R.n.D, All rights reserved

Author : Bayan Al Safadi

Video URL: 


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
3D R.n.D's picture

Thank you so much for taking

Thank you so much for taking your time to optimize it. i can learn alot from these mods ... will try to fix my code and resubmit it .

obaida's picture

Check the Attachment

- Can work on any shape if it has 1 spline/or 1 Selected spline (it can be modified to work
with more than 1 Spline But Need Extra Work , You can Check that) .
- Extract similar commands to Functions .
- Avoiding (splineOps./Modify Panel) will Give the Results Instantly .

3drnd_road_offsetter_v1.05-m.ms 5.61 KB
3D R.n.D's picture

i believe it need

i believe it need optimizations, but unfortunately maxscript doesn't like splines that much ... if u have some ideas for optimizing it i will be glad to fix it

3D R.n.D's picture

sorry i didn't mention it in

sorry i didn't mention it in the discerption, but u should select 1 spline (as a subobject) and apply the script

obaida's picture

this script work on spline

this script work on spline sublevel only .

dmitrybelonosov's picture

I have a mistake

Hello. I have a mistake. Is there anything we can do?

obaida's picture


nice idea but need hard Optimizing .

Comment viewing options

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