simple offset operation script for rhino

By Woo Jae
 
 
During the process of my last semester’s work, I just had to offset hundred of thousand curves, which seemed like to take forever.
work process diagram

work process diagram

So, this Rhino script is for this offset operations. Run script at Monkey, select curves to offset and then just wait Rhino to respond. Then you will get offset curves on the new layer.

Some screenshots of Rhino. Original curves,

original curves

original curves

and offset curves, 

offset curves

offset curves

and offset script.

offset script

offset script

And for those of you interested in script, download script.

Tags:

8 Responses to “simple offset operation script for rhino”

  1. stu Says:

    the images posted aren’t clear as to what was offset.
    is this only for circle offsets or for all curves?

    am trying to get a quick way to select a ton of curves and then run a script that offset them all to a specific amount.

  2. Woo Jae Says:

    I am sure this script is gonna work very well with bunch of curves too. Why don’t you try this?

  3. Frank Says:

    works beautifully … but it creates the offset curves on the same layer, even in the same group. How can I change the script to create the curves on a different, maybe the current layer?

  4. Woo Jae Says:

    You should make a new layer named “offset” before you run the script. I forgot mention it. Look at the line “rhino.objectlayer arraynewobject,”offset”. It says that it will assign the object named “arraynewobject” in the “offset” layer which is predefined.

  5. Olek Says:

    Hi. I know it’s an old post. I am trying to offset a large amount of curves and I am trying to use your script.
    I am doing it for the first time so I have no experience in doing this. I have loaded your script but when I try to runscript nothing shows up. Also if use -runscript and typ Main for the subroutine it doesn’t work either.
    This is some really basic stuff but I just started learning.
    Thanks,
    Olek

    • Woo Jae Says:

      For me it works well. I guess you were tyring to use it with open curves. It should work with just closed curves. FYI, it is handy to use Monkey instead of runscript thing.

  6. yawen Says:

    hi im running this script by dragging it into the rhino screen. however, i don’t see the distance option, so it ends up creating the same curves on top of my selected curves (closed). you mentioned about Monkey, but i don’t know what it is… i am starting to learn as well…
    thanks a lot~

  7. yawen Says:

    oh never mind
    i opened the script on notepad and changed the setting
    now it works fine~
    thanks anyways for publishing your script
    it saved me loads of time~ really appreciate it~

Leave a Reply