Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5809

One extrude command for extruding curves and surfaces

$
0
0

Hello there !

I would like to ask if is possible to make script, that will decide what command will be used if is selected curve or surface. Simply merge the 2 existing commands: ExtrudeCrv and ExtrudeSrf to one, based on selection. I have done something, but it not working as I expected, I´m totally newbie in scripting.

Dim strObject

strObject = Rhino.GetObject(“Select a curve”)

If Rhino.IsCurve(strObject)Then

Rhino.Command "_SelPrev"
Rhino.Command "_ExtrudeCrv"

Else

Rhino.Command "_SelPrev"
Rhino.Command "_ExtrudeSrf"

End If

It will be very helpfull instead of using 2 commands, it will make Rhino more user friendly :slight_smile:

Thank for help
Tom

10 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 5809

Trending Articles