Gewählte Elemente direkt in Cura öffnen:
# -*- coding: utf-8 -*- import os import FreeCAD import Mesh import subprocess allFiles=[] fname = FreeCAD.ActiveDocument.FileName dname = os.path.dirname(fname) fname, _ = os.path.splitext(os.path.basename(fname)) for i in Gui.Selection.getSelection(): currentFile = os.path.join(dname, ".tmp_" + fname +"-"+ i.Label + u".stl") Mesh.export([i], currentFile) allFiles.append(currentFile) if len(allFiles) > 0: print("starting cura on " + (" ").join(allFiles)) # Change Cura location here: subprocess.Popen(["/home/user/shittyDownloads/Cura/cura", (" ").join(allFiles)]) else: print("no objects selected")