mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 17:46:28 +00:00
New feature to select the container of an object
This commit is contained in:
@@ -101,6 +101,11 @@ class Spatial(blenderbim.core.tool.Spatial):
|
||||
tool.Ifc, tool.Collector, tool.Spatial, structure_obj=structure_obj, element_obj=element_obj
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def set_active_object(cls, obj):
|
||||
bpy.context.view_layer.objects.active = obj
|
||||
obj.select_set(True)
|
||||
|
||||
@classmethod
|
||||
def set_relative_object_matrix(cls, target_obj, relative_to_obj, matrix):
|
||||
target_obj.matrix_world = relative_to_obj.matrix_world @ matrix
|
||||
|
||||
Reference in New Issue
Block a user