Need to batch edit a lot of files - would love to get your help! 🙂
 
Notifications
Clear all

Need to batch edit a lot of files - would love to get your help! 🙂  

  RSS
Valthol
(@valthol)
Active Member
Need to batch edit a lot of files - would love to get your help! 🙂

Hello! I have few cases in which I need to work on hundredts of .stl files and make a simple modifications to them. I am trying to look for some batch editing ideas for a few days but I am running in circles right now. I don't even know which software to use, best would be possible to work with comand line. I have already tried Prusa Slicer Console and Slic3r console, but they do not have the required options.

Case 1 - I need to batch simplify models. I have pretty simple models (for human perception) that have way too much triangles - over 1 milion, they can weight over 300 MB and simplifiyng them in Prusa by only a small steps already gives me models that are 30x lighter and don't loose any details.

How could I do it massively with automation?

Case 2 - I have hundreds of models that I need to make simple changes on them - increase Z, Cut in given Z, store only the lower part, resize. All of those tasks are 100% the same and repeatable.

How could I do it massively with automation?

Would love to get any ideas guys and girls 🙂 Thanks!

Posted : 07/02/2024 4:27 pm
Diem
 Diem
(@diem)
Illustrious Member

Case 1:  PS doesn't expose Simplify to the command line.  To get a lighter gcode it's worth experimenting with the --gcode-resolution   and --resolution  parameters; use --help-fff to get a full list.

Case 2:  This sort of operation might be doable with sed, awk, perl or even python, you will need a good understanding of regex.

It may be better to go back to whichever CAD software you are using and look for quality settings there.

Cheerio,

Posted : 08/02/2024 4:32 am
Share: