Jump to content
Ultimaker Community of 3D Printing Experts
wrhflow

Layer change snapshot - VLC script

Recommended Posts

Hi,

I am currently getting a series of snapshots (equally spaced timewise) using VLC with the following .bat script (might help others).

 

START "" vlc.exe "http://172.20.18.233:8080/?action=stream" --video-filter=scene --vout=dummy --aout=dummy --scene-format=jpeg --scene-ratio=1500 --scene-prefix=snap --scene-path="C:\Users\Operator\Documents\" vlc://quit

 

I have read a bit about the functionality of the hardware on the UM3 and am impressed. I haven't read about a method to capture a layer change event that I want to implement into my VLC script to only snapshot layer changes.

P.S. I create videos using the timelapses quite easily using premier pro post recording.

Any body have any ideas?

Kind regards

Sui

Share this post


Link to post
Share on other sites

  1. If you can write some python script you could make a snapshot when the change active hotend code is running (findable on the printer at /usr/share/griffin/griffin/printer/procedures/print/switchActiveHotendStep.py, this requires developer mode and ssh).
  2. You could use how the T0/T1 is intercepted by the switch active hotend to introduce your own gcode to make a snapshot.
     
  3. You can write code that connects to that step/procedure running via dbus, also on the printer
  4. You could monitor the API, but you'd ahve to monitor position z height or head position near the switching bay and that is not exact.

I hope that helps!

maybe in the future we can make a snapshotting feature or even a timelapse feature with the cura connect software launching the 7th of November, but that would be a relatively low priority thing, so don't expect it anytime soon.

In the mean time if you want this you'd have to get your hands dirty with some code.

Edited by Guest

Share this post


Link to post
Share on other sites

T1 and T0 are the gcode command to select the left and right hotend respectively.

These commands are intercepted in the python code on the UM3 and then a more complex sequence of actions is triggered and sent to marlin.

You could easily intercept a M to trigger a bit of python code and create a snapshot and place that snapshot in a folder of the webroot, add to that a api that keeps a new timestamp every time that image is updated and you can monitor that timestamp and get the image every time it's updated, or just keep getting the image every few minutes/seconds and compare images.

you then still need to insert that M code into the gcode file (for instance at every ";LAYER:" line) though.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Terms of Use Privacy Policy