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

How to get the number of surfaces?

$
0
0

@Alen_Russ wrote:

Hi,

When I select the surfaces I need to know the number of surfaces. eg.I select three surfaces and get the number is 3.

import rhinoscriptsyntax as rs


def do():
    msg="Select the surfaces get the number of surfaces"
    objectIds = rs.GetObjects(msg, filter=8, preselect=True)
    if not objectIds: return

do()

Thanks

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5817

Trending Articles