convert_to_selections

Modeler2D.convert_to_selections(objtosplit, return_list=False)

Convert one or more object to selections.

Parameters
objtosplitstr, int, list

One or more objects to convert to selections. A list can contain both strings (object names) and integers (object IDs).

return_listbool, option

Whether to return a list of the selections. The default is False, in which case a string of the selections is returned. If True, a list of the selections is returned.

Returns
str or list

String or list of the selections.