How do I implement Rhino.Input.Custom.GetObject to allow the user select multiple surfaces and/or polysurfaces. They need to be allowed to select groups and also allowed to select individual surfaces from a polysurface object.
Rhino (Windows) allows the user to select all of the following objects at once:
A surface
A polysurface (holding the Shift key)
A surface from a polysurface (Ctrl-Shift)
A group of surfaces (Shift)
A single surface from a group of surfaces (Ctrl-Shift)
How can I get Rhino.Input.Custom.GetObject to act the same way?
go = Rhino.Input.Custom.GetObject()
go.GroupSelect = True
go.GeometryFilter = Rhino.DocObjects.ObjectType.Brep
rc = go.GetMultiple(1,0)
objs = [go.Object(n) for n in range (go.ObjectCount)]
print (len(objs))