Extraindo informações de terreno no Blender para o Archicad
Código para extração de coordenadas
importbpyfrompathlibimportPath# Get the directory of the current .blend fileblend_dir=Path(bpy.data.filepath).parentsave_to_file=blend_dir/"vertices.txt"# Output file in the same folderseparator=","# Custom separator# Extract vertex coordinatesvertices=[f"{v.co.x}{separator}{v.co.y}{separator}{v.co.z}"forvinbpy.context.object.data.vertices]# Save to filewithopen(save_to_file,'w')asfile:file.write('\n'.join(vertices))print(f"Vertices exported to: {save_to_file}")