Automatic slicing from folder and export to usb?
 
Notifications
Clear all

Automatic slicing from folder and export to usb?  

  RSS
Jimbo
(@jimbo-5)
Membre
Automatic slicing from folder and export to usb?

Hello.

I have been using Prusaslicer for about 4 years now...and it works great.

I am looking to get things done faster

My cad is already setup with a single button to export to stl and save in a folder with the name stl1, stl2 etc automatically.

is it possible when a new file is created in a folder starting with first 3 letters stl to automatically get sliced in Prusaslicer and export the gcode to usb?

My pla Prusaslicer settings never change and I do several versions a day...so I am trying to save some time here.

Tnx!

Ce sujet a été modifié il y a 5 days par Jimbo
Publié : 06/11/2025 12:57 am
_KaszpiR_
(@_kaszpir_)
Noble Member
RE: Automatic slicing from folder and export to usb?

Maybe with a scripting via inofiy to watch given directory for new files, run peisa slicer cli to slice it and generate a new gcode and maybe directly export tot he printer via sliver in th cli if possible ( not sure), or another script or tool to sync between the computer and remote usb

See my GitHub and printables.com for some 3d stuff that you may like.

Publié : 06/11/2025 9:03 am
1 personnes ont aimé
yahbluez
(@yahbluez)
Active Member
RE: Automatic slicing from folder and export to usb?

 

Posted by: @jimbo-5

Hello.

I have been using Prusaslicer for about 4 years now...and it works great.

I am looking to get things done faster

My cad is already setup with a single button to export to stl and save in a folder with the name stl1, stl2 etc automatically.

is it possible when a new file is created in a folder starting with first 3 letters stl to automatically get sliced in Prusaslicer and export the gcode to usb?

My pla Prusaslicer settings never change and I do several versions a day...so I am trying to save some time here.

Tnx!

 

This will do the job:

inotifywait -m -e close_write --format '%w%f' /path/to/your/folder | while read filename; do /path/to/your/script.sh "$filename"; done

 

It waits until a new file is written to /path/to/your/folder

then runs

/path/to/you/script.sh  /path/to/your/folder/new_filename

It runs infinite and calls your script for each new file ones. your script is called after the file is written.

Publié : 07/11/2025 10:00 am
1 personnes ont aimé
Jimbo
(@jimbo-5)
Membre
Topic starter answered:
RE: Automatic slicing from folder and export to usb?

Thank you for the info.

Bear with me...where do I put these lines of codes?

Inotify is a windows item?

 

Tnx!

Publié : 07/11/2025 5:24 pm
Diem
 Diem
(@diem)
Illustrious Member

inotify / inotifywait is originally linux but it has been ported.  

Bear with me...where do I put these lines of codes?

You are basically daemonising the process - turning it into a background task.  If you are not familiar with shell programming you might be wise to drop the plan.  You need to use .bat / .cmd batch scripts - the commands that underlie windows.

Cheerio,

Publié : 07/11/2025 8:17 pm
2 personnes ont aimé
Partager :