Jump to content
wrhflow

Layer change snapshot - VLC script

Recommended Posts

Posted · Layer change snapshot - VLC script

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
Posted (edited) · Layer change snapshot - VLC script

  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
Posted · Layer change snapshot - VLC script

To me the easiest would be to monitor the API, but you are right it wouldn't be exact.

NO prob getting dirty with code. Will see how I go. Cheers.

Whats T0/T1?

Sui

Share this post


Link to post
Share on other sites
Posted · Layer change snapshot - VLC script

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Our picks

    • Ultimaker Cura 4.0 | Stable available!
      Ultimaker Cura 4.0 is mainly focused on the improved user interface and cloud integration.
      As always, we want to collect your user feedback for this release. If there are any improvements you can think of, feel free to mention it here and help us to shape the next release.
      • 98 replies
×
×
  • Create New...

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!