Automate Save process for 50-100 files

I have Gcode that I will need to export 50 different files. Each file changes as I slide the number slider and I have a cool script that is saving the files as gcode on my computer. I can sit here and change the slider, wait 60 seconds for it to solve, then click save. But thats no fun! Is there a solver that can help me automate this 50-100 times?
I can upload a basic version of my gh script but hoping to avoid it since some of it isn’t mine to share.

hello for sure you can,
the most simple if you have a slider is to use animate,


Choose a little resolution of image as you don’t use it (but you can use it to automate image of your mug !!)
then choose the good frame count in order to be sure to have all the integers of your list, click OK and let the magic work.

2 Likes

Hello,

Thanks I didn’t even know I could do that to a slider. I am able to get the slider to animate but how do I get the “save gcode file” button to activate each time a solution is formed?

Thanks for taking the time to respond, this actually reminds me that I never emails you back to upgrade my Nautilus plugin! Doing that now.

Hard to say without knowing how the plugin works, I use this take to make images with others plugin that saves a file and I let a true at the save input. It could work the same with the plugin you have.

try the ‘pancake’ plugin save as component. I did this with a project couple months ago that I needed to save 100+ .dxf files for laser cutting (demo here). use the animate and then a gate logic to save each time you animate the slider.

I tried the c# script suggested in this post here:

export_csv.gh (18.4 KB)

Hey Leonardo,

Thanks for this suggestion. I used this and the date logic and its working!

awesome! pancake is a really useful plugin for file saving.