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

0 votes
Version: 
1.05
Date Updated: 
01/09/2022
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.05

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

Video URL: 

Comments

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 .

AttachmentSize
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?
https://recordit.co/CMSGKqXchs

obaida's picture

OK

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.