Jump to content
Ultimaker Community of 3D Printing Experts

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

  • 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

      • Talking additive | The 3D printing podcast
        Why should we be the only ones asking questions? Join us and ask Jabil all your questions on September 22nd 5pm CET
          • Like
        • 3 replies
      • Ultimaker masterclass: Optimizing your Ultimaker Cura workflow
        Save your seat for either broadcast on September 23.
        What will you learn?
        · Best practices for iterative print preparation and every lesson you should learn from each print
        · The right way to use per-object settings and when they are most useful
        · Easy-to-use resources for anyone who wants to develop their own printer definitions, plugins, or print profiles
        · How to optimize print profile settings and whether to “keep” or “discard” changes
        · When is the right time to export your drawing from CAD? (Based on Ultimaker Cura’s surprising power as 3D control software)
        · And a whole lot more tips and tricks!
         
        How can I join?
        This free masterclass will take place twice:
        1. 11am CEST (5pm SGT, 5am EDT)
        2. 5pm CEST (11am EDT, 8am PDT, 11pm SGT)
          • Like
        • 0 replies
      • Do you use 3D printing at work? Let us know
        It doesn't matter if you are using 1 Ultimaker or 10, there is inspiration in everything. We're looking for ...
        • 1 reply
    ×
    ×
    • Create New...