Jump to content

Plugin help for QML > .PY communication

Recommended Posts

Posted · Plugin help for QML > .PY communication

Hey everyone,


I thought i'll go on an adventure and create my own plugin.


whilst stumbling through the examples and pretty much no documentation, I came upon an example whereof I don't know how it's mechanics work.


i found the following from https://github.com/fieldOfView/Cura-MeasureTool


// MeasureTool.qml

property var pointA: UM.ActiveTool.properties.getValue("PointA")

self.setExposedProperties("PointA", "PointB", "Distance", "ActivePoint", "FromLocked", "SnapVerticesSupported", "SnapVertices")


somehow this is linked together.  But I can't seem to find out how.


Could someone explain how it works?


In the end. All i want to do is to pass a Bool from .QML to the .py

  • 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

      • UltiMaker Cura 5.3 stable released
        In this stable release, Cura 5.3 achieves yet another huge leap forward in 3D printing thanks to material interlocking! As well as introducing an expanded recommended print settings menu and lots of print quality improvements. Not to mention, a whole bunch of new printer profiles for non-UltiMaker printers!
          • Thanks
          • Like
        • 56 replies
      • UltiMaker Cura Alpha 🎄 Tree Support Spotlight 🎄
        Are you a fan of tree support, but dislike the removal process and the amount of filament it uses? Then we would like to invite you to try this special release of UltiMaker Cura. Brought to you by our special community contributor @thomasrahm
        We generated a special version of Cura 5.2 called 5.3.0 Alpha + Xmas. The only changes we introduced compared to UltiMaker Cura 5.2.1 are those which are needed for the new supports. So keep in mind, this is not a sneak peek for Cura 5.3 (there are some really cool new features coming up) but a spotlight release highlighting this new version of tree supports.  
          • Like
        • 34 replies
    • Create New...