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

Rhinoscript GetObjects() doesn't keep objects selected

$
0
0

@S_L wrote:

I’m writing a command that selects two sets of breps. The sets are supposed to be mutually exclusive (can’t pick a brep in set 1 to be part of set 2). I can’t seem to make this happen by using the available options in rs.GetObjects. What gives? Is there a way to do this without RhinoCommon?

import rhinoscriptsyntax as rs

set1 = rs.GetObjects("Select some breps for set 1",filter=16,select=True,preselect=False)
#set 1 should be selected now...
set2 = rs.GetObjects("Select some more breps. Shouldn't be able to pick any of the set 1 breps.",filter=16,select=True,preselect=False)

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5756

Trending Articles