WISH: additional argument in ObjectsBy... methods

Hi @dale

Would it be possible to add an argument to ObjectsBy… methods that would take an array of given objects to process, instead of all file objects (similar to GetObjects method that allows to narrow down the selection to user-defined set).

thank you,

Jarek

HI jarek
You need rs. ObjectsByType rs.ObjectsByType()

Thanks, but that’s not what I am after - just to clarify: for the methods:

ObjectsByColor
ObjectsByGroup
ObjectsByLayer
ObjectsByMaterialIndex
ObjectsByMaterialSource
ObjectsByName
ObjectsByRegion (by the way - the Help file description needs update here: now is: Returns the identifiers of all objects based on the objects’ geometry type.)
ObjectsByType
ObjectsByURL

I’d like to have additional, optional argument - for example in ObjectsByType it would be:
Rhino.ObjectsByType (intType [, blnSelect [, intState],arrObjects]]])

arrObjects - Optional. Array. An array of strings identifying the objects that are used as input to process

–jarek

1 Like

It’s on the list.

http://mcneel.myjetbrains.com/youtrack/issue/RH-10161

thanks Dale

–jarek

Hi Dale,

The Rhino.FilterObjects method seems like a great idea, thanks for adding it. I hope the types can be combined (8+16+32 etc.)

jarek

Yep, it sure does!