ScriptSpot

Script

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

By 3D R.n.D · Credited author: Bayan al Safadi · 2022-01-09

Version
1.2
Date updated
2022-01-20
Votes
2
Download
Download
Description

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

https://obaidaviz.gumroad.com

 

https://www.youtube.com/channel/UCMSRyibVP1HhASQMA7Xa_Hg

 

Subscribe to my YouTube channel:

https://www.youtube.com/channel/UCp13ZiWcwCCV2RjcXsD6ZGA

follow me on instagram :

https://www.instagram.com/3d_r.n.d/

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


Videos

Tags: #road, #offsetter, #outline, #spline, #line

Comments (7)

obaida · 2022-01-14

this script work on spline sublevel only .

3D R.n.D · 2022-01-16

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

3D R.n.D · 2022-01-16

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

Check the Attachment

obaida · 2022-01-16

- 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 .

Attachments

3D R.n.D · 2022-01-17

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 .

OK

obaida · 2022-01-10

nice idea but need hard Optimizing .