How do you select groups with GetOneObject?

If I click a group when I run Rhino.Input.RhinoGet.GetOneObject(), it selects an object within the group, not the whole group. How do I make it respect groups?

Chris

GetOneObject only gets one object, even if the object you picked is in a group. If you need to pick a group of objects, use GetMultipleObjects.

I see the same behavior with GetMultipleObjects: even though the thing I’m clicking is a group, the click selects only one object in the group, not the whole group.

Chris

Looks like the quick and easy object picker doesn’t support group selection.

Try this:

Rhino.Input.Custom.GetObject go = new Rhino.Input.Custom.GetObject();
go.GroupSelect = true;
go.GetMultiple(1, 0);

Ah, excellent. Thanks!

I have to say I’m very impressed with how McNeel supports the people who use its products. Here I am working on a Sunday, and I’ve gotten quick responses to two questions. Phenomenal!

1 Like