Commit 7f40d5de authored by Guillaume Seguin's avatar Guillaume Seguin

Explicit command in simarrange autoplating for easier debugging

parent 9920f8bf
......@@ -359,11 +359,11 @@ class StlPlater(Plater):
print _("Autoplating using simarrange")
models = dict(self.models)
files = [model.filename for model in models.values()]
p = subprocess.Popen([self.simarrange_path, "--dryrun",
command = [self.simarrange_path, "--dryrun",
"-m", # Pack around center
"-x", str(int(self.build_dimensions[0])),
"-y", str(int(self.build_dimensions[1]))] + files,
stdout = subprocess.PIPE)
"-y", str(int(self.build_dimensions[1]))] + files
p = subprocess.Popen(command, stdout = subprocess.PIPE)
pos_regexp = re.compile("File: (.*) minx: ([0-9]+), miny: ([0-9]+), minrot: ([0-9]+)")
for line in p.stdout:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment