We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25fa515 commit efb4afbCopy full SHA for efb4afb
src/compas/scene/scene.py
@@ -245,3 +245,11 @@ def find_by_itemtype(self, itemtype):
245
for obj in self.objects:
246
if isinstance(obj.item, itemtype):
247
return obj
248
+
249
+ def find_all_by_itemtype(self, itemtype):
250
+ # type: (Type[compas.data.Data]) -> list[SceneObject]
251
+ sceneobjects = []
252
+ for obj in self.objects:
253
+ if isinstance(obj.item, itemtype):
254
+ sceneobjects.append(obj)
255
+ return sceneobjects
0 commit comments