mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 21:18:49 +00:00
New feature to select all objects in same container
This commit is contained in:
@@ -60,6 +60,10 @@ class Spatial(blenderbim.core.tool.Spatial):
|
||||
def get_container(cls, element):
|
||||
return ifcopenshell.util.element.get_container(element)
|
||||
|
||||
@classmethod
|
||||
def get_decomposed_elements(cls, container):
|
||||
return ifcopenshell.util.element.get_decomposition(container)
|
||||
|
||||
@classmethod
|
||||
def get_object_matrix(cls, obj):
|
||||
return obj.matrix_world
|
||||
@@ -101,6 +105,10 @@ class Spatial(blenderbim.core.tool.Spatial):
|
||||
tool.Ifc, tool.Collector, tool.Spatial, structure_obj=structure_obj, element_obj=element_obj
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def select_object(cls, obj):
|
||||
obj.select_set(True)
|
||||
|
||||
@classmethod
|
||||
def set_active_object(cls, obj):
|
||||
bpy.context.view_layer.objects.active = obj
|
||||
|
||||
Reference in New Issue
Block a user