Take picture on actual layer change#992
Conversation
| Triggers aphoto from the camera and stores it through | ||
| another command so later a timelapse can be created |
There was a problem hiding this comment.
| Triggers aphoto from the camera and stores it through | |
| another command so later a timelapse can be created | |
| Triggers a photo from the camera and stores it through | |
| another command so when finished, a timelapse can be created |
|
I was aiming on doing this PR on my Fork. Although I'm still planning on opening a PR once all changes have been done. |
|
Hi, I tried doing this from observing the Z value, the code ended up being trash and the output wasn't that great. I tried supporting vase mode there too. Anway. I don't think we'd be doing this using saved pictures, instead uploading the pictures to connect. I respect you trying to make my code do a new thing. Hope it doesn't give you too many headaches. output.mp4 |
|
Thanks for giving it a try. I had to also make some changes in Prusa-Connect-SDK-Printer.
If not an issue, could you share your approach with me? I just started with 3D printing a month ago and I’m doing this for fun so far. I do have similar issues because of not getting a good focus for the camera, is that what you meant from “Timelapse not bing very good”? Although I’m pleased with the results obtained so far from my side and I haven’t worked yet on rendering the Timelapse at print success and making the timelapses available form PrusaLink local server (that was my original approach as it is what I saw more chance of controlling from my side, rather than using Prusa Connect). I can happily redirect my approach if you want to do that final implementation seems more adequate to the desired functionalities. Btw, in working with a MK3S+ that, as mentioned, is the first 3D printer I got just a month ago, if not less. |
|
These are some examples of the timelapses I can produce currently. Video.de.WhatsApp.2024-08-21.a.las.17.33.45_30971d94.mp4Video.de.WhatsApp.2024-08-21.a.las.17.52.38_51408abe.mp4 |
|
Could this feature be considered to be merged? I can retake the effort on this and add corresponding testing if necessary. |
Instead of right when parsing the
LAYER_CHANGEcomment from PrusaSlicer generated gcode, add a listener(?) for a serial message coming from the Einsy board. This message is sent with the following gcode, which needs to be inserted at the desired spot in the gcode file.Saving is done in
~/prusa/timelapses/<gcode_file_name>/<gcode_file_name>_0000.jpgand the numberin takes an ascending order based on the last number used.