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!
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.
RE: 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!
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.
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!
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,