Offset multiple curves

Hi,

the task is to offset a bunch of open curves to one direction.
The offset distance is of course the same for all of the curves.
Addtionally all the created curves shall go to the same layer as the source curve.
Like this (“S” = source curves, “direction point” = side to offset to):

I assume someone has already a script for this?

Thanks,
-C-H-A-R-L-E-S-

Here is an old .rvb that I have from a couple of years ago. Reminds me that I should now look into pythonizing it and cleaning it up a bit…

–Mitch

OffsetMultiCrvs.rvb (2.5 KB)

Edit:
Here is a hacked together Python version…

OffsetMultiCrvs.py (1.8 KB)

Here is a version that may be more reliable in certain cases…
(does not depend on scripting rs.Command)

OffsetMultiCrvs2.py (3.7 KB)

1 Like

Mitch you are the best, works exactly as wanted.
Thank you very much!

BTW, this functionality should per given by the natural offset command…

thanks alot!
the most powerful one is the py one, but, is there a way to make it one side? because the rvb one is picking the side for one curve only it’s not working for others! Im talking about a situation where you have a city blocks for example
thanks for helping