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

Merge two surfaces

$
0
0

@AleksandarSM wrote:

Hello,

I'm new to this forum an not a complete novice to rhinoscript and python scripting.

I am working on a script that should merge 2 surfaces as rhino command _MergeSrf ,

Is there a way to do it without directly invoking the command?

import rhinoscriptsyntax as rs

def MergeSurface():

Object1 = rs.GetObject("Select Surface 1" ,8)   
Object2 = rs.GetObject("Select Surface 2" ,8)
    
rs.SelectObject(Object1)    
rs.SelectObject(Object2)

rs.Command ("MergeSrf Smooth=No _Enter")

if name=="main":
MergeSurface()

this works, but is there a better way?
because I need to merge multiple surfaces in one

thanks in advance
Aleksandar

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5793

Trending Articles