Welcome! Log In Create A New Profile

Advanced

combine stl files to amf via command line?

Posted by 4ndreas 
combine stl files to amf via command line?
December 04, 2013 05:37AM
Is there a possibility to combine several stl files to one amf by using slic3r-console.exe ?

something like this fictitious example (not working):
slic3r-console.exe -i file_A.stl -i file_B,stl -o out.amf

I'ld like to automate my multicolor tool chain an combining the stl files is a quite annoying procedure


[chaozlabs.blogspot.de]
Re: combine stl files to amf via command line?
December 05, 2013 09:34AM
I have some python code that does this that could easily be adapted for a command line interface. I'll work on it tonight and get it up on github.
Re: combine stl files to amf via command line?
December 06, 2013 02:09PM
I have put my code up at github. Very simple usage: "python stlmerge.py file1.stl .... filen.stl output.amf.xml"

The stl file names must exist. The amf.xml file name will be overwritten/created. I do not enforce the file naming conventions, but slic3r does, so be sure to use .amf.xml as your suffix.

Also, I do NOT do anything with the STL data. I do not drop/raise so that the minimum Z is 0 and I do not center the object(s). Whatever coordinates are in the stl files are taken as is and written to the aml.xml file. The code could be easily modified to support these features, and I was thinking of enhancing it a bit, but I'm about to leave on a business trip and I wanted to get this out there.
Sorry, only registered users may post in this forum.

Click here to login