@Coen Hi, would it be possible to save relative links as well? With our repo workflows with collaborators, the absolute path is always different.
I just discovered you can just set any string you want in the folder menu of Blender, however when I write it as a property in IFC it just turns into a dumb string and I can't use it anymore as path. Any suggestions?
I just discovered you can just set any string you want in the folder menu of Blender, however when I write it as a property in IFC it just turns into a dumb string and I can't use it anymore as path. Any suggestions?
The following snippet is supposed to delete a pset by name, but it doesn't work, I might be doing something wrong.
ifc = ifcopenshell.open(IfcStore.path)
element = ifc.by_type("IfcBuilding")[0]
products = ifc.by_type('IfcProduct')
for ifcproduct in products:
if ifcproduct.IsDefinedBy:
for ifcreldefinesbyproperties in ifcproduct.IsDefinedBy:
if (ifcreldefinesbyproperties.is_a()) == 'IfcRelDefinesByProperties':
if ifcreldefinesbyproperties.RelatingPropertyDefinition.is_a() == 'IfcPropertySet':
if (ifcreldefinesbyproperties.RelatingPropertyDefinition.Name):
if (ifcreldefinesbyproperties.RelatingPropertyDefinition.Name) == active_object_name:
ifcopenshell.api.run("pset.remove_pset", ifc, product=element, pset=ifcreldefinesbyproperties.RelatingPropertyDefinition)
bpy.data.objects.remove(bpy.data.objects[image_name], do_unlink=True)
I want to delete a pset looping through all the psets names until there is a match, but it creates nested for loops and if statements. The code smell is horrendous. Is there a better way of doing this?
I also think that import images as planes is probaly a more accurate way of importing an image, this way I can set the origing point at (0,0,0) and just measure a random dimension line somewhere and calculate and set the scaling factor. Instead of creating a reference object to scale along to. In my opninon the fastest and most accurate way of scaling an image for reference. Any thoughts?
Also this way you can see the grid and the drawing.
G
by Gorgious on 10 May 2023, edited 10 May 2023#
+3 votes
This would also be a nudge in the right direction for native image references because Images as planes are just quad meshes with an image texture assigned to it. If it was supported in ifc (I have a feeling it is, but it needs to be correctly written / read by the blenderbim addon too), you wouldn't even need to jump through hoops with your addon to have reference images.
Btw if you want to see an image in the background you need to set the Depth to "Back"
Hey @Coen thanks for the amazing little addon again! I'm trying to use it again and not sure where to download the file from?
That add-on is a work-in-progress, it's not finished yet. But the basic functionality is there of storing an image with file path and blender position, location, rotation and scaling in an ifc propertyset. I want to be able to add relative paths as well.
I haven't made a zip yet, but if you git clone it. I think you coud just zip the folder BlenderBIM_add_reference_images and use that to install the add-on.
I also think that import images as planes is probaly a more accurate way of importing an image, this way I can set the origing point at (0,0,0) and just measure a random dimension line somewhere and calculate and set the scaling factor. Instead of creating a reference object to scale along to. In my opninon the fastest and most accurate way of scaling an image for reference. Any thoughts?
This is definitely a more logical approach, the only benefit of the scaling with a reference is that it is very visual and intuitive
Hi @SigmaDimensions , would it be possible to alter your YouTube settings so that we can get notifications when you upload a new video (the Bell Icon)?
Hi @SigmaDimensions , would it be possible to alter your YouTube settings so that we can get notifications when you upload a new video (the Bell Icon)?
Thanks for your hard work.
Cheers @Bedson ! Not certain, but perhaps it's your youtube settings : "To get all notifications from a subscribed channel, tap the Notification bell ." source