Skip to content

Instantly share code, notes, and snippets.

View brunoperdigao's full-sized avatar

Bruno Perdigão brunoperdigao

View GitHub Profile
@brunoperdigao
brunoperdigao / Recreate_index_for_Linked_Aggregate.py
Last active March 16, 2024 13:48
Script for BlenderBIM to be used to update index and allow Linked Aggregate to preserve the object's original names
import bpy
import json
import ifcopenshell
import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore
file = IfcStore.get_file()
groups_to_create = []
for obj in bpy.context.visible_objects:
@brunoperdigao
brunoperdigao / blenderbim-linked-aggregate-remove-extra-groups.py
Created November 22, 2023 00:46
blenderbim-linked-aggregate-remove-extra-groups.py
import bpy
import blenderbim.tool as tool
import ifcopenshell
from blenderbim.bim.ifc import IfcStore
file = IfcStore.get_file()
@brunoperdigao
brunoperdigao / blenderbim-update-linked-aggregate-to-ifcgroup.py
Created November 7, 2023 01:18
blenderbim-update-linked-aggregate-to-ifcgroup
import bpy
import json
import ifcopenshell
import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore
file = IfcStore.get_file()