Jump to content

Layer change snapshot - VLC script


wrhflow

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

  • 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
  • Link to post
    Share on other sites

    • 2 weeks later...
    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.

  • 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
    • Our picks

      • Introducing Universal Cura Projects in the UltiMaker Cura 5.7 beta
        Strap in for the first Cura release of 2024! This 5.7 beta release brings new material profiles as well as cloud printing for Method series printers, and introduces a powerful new way of sharing print settings using printer-agnostic project files! Also, if you want to download the cute dinosaur card holder featured below, it was specially designed for this release and can be found on Thingiverse! 
          • Like
        • 10 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...