Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Filament-type visible in Object Model?

    Scheduled Pinned Locked Moved Solved
    Firmware wishlist
    2
    3
    252
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ÖrjanEundefined
      ÖrjanE
      last edited by

      I was expecting to find the currently loaded filament in the object model, but fail to find it (perhaps I'm just blind).
      If it actually is not present in the object model, then this is a wish for future versions.

      Background:
      I'm running RRF 3.4 and would like to access the currently loaded filament in order to have a startup script which checks that the filament set in the slicer matches the filament loaded in the machine. I realize that this could be achieved by setting some "magical" global variable in each of the filament config.g-files, but this solution feels unnecessarily fragile.

      /Ö

      1 Reply Last reply Reply Quote 0
      • ÖrjanEundefined ÖrjanE marked this topic as a question
      • mikeabuilderundefined
        mikeabuilder
        last edited by

        It's buried in the move section.

        move.extruders[<#>].filament
        

        You need to give an extruder number. For the extruder on the current tool:

        move.extruders[state.currentTool].filament
        

        If you tool has multiple extruders... I'm not sure

        ÖrjanEundefined 1 Reply Last reply Reply Quote 2
        • ÖrjanEundefined
          ÖrjanE @mikeabuilder
          last edited by

          @mikeabuilder Thanks!

          1 Reply Last reply Reply Quote 0
          • ÖrjanEundefined ÖrjanE has marked this topic as solved
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA