Jump to content

Advice for creating a labelling plugin for Cura


will_barley

Recommended Posts

Posted · Advice for creating a labelling plugin for Cura

I want to create a Cura plugin to enable a user to label a model. 

 

The label would be text on the bed sitting next to the model.

 

The text might simply be text, or include macros, like:

"$speed" 

That, at slice time, is replaced with slice settings, such as the print speed in this case.

 

I'm trying to figure out what hooks I can get into in Uranium (Cura code).  I have read this page in the examples there: 

https://github.com/Ultimaker/Cura/wiki/Plugin-Directory

 

Can anyone tell me, or point me to a link that explains, the set of available hooks? 

 

Does anyone have an advice on how a plug-in like this should be implemented? 

 

After reading the Tool plugin example at the link above, I imagine how this could be implemented as a Tool plugin, which receives events when the tools active, and then can work with the items in the Cura Scene. 

 

Some things I can see that I will have to do:

- accept user input, (label content)

- possibly consider selection in the scene, so that a user can apply a specific label to a specific item in the scene

- replace macros with values at slice time

- add items to the scene that get sliced by the slicer

 

Any suggestions?

 

Will

  • 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.8 Stable released 🎉
        In the Cura 5.8 stable release, everyone can now tune their Z seams to look better than ever. Method series users get access to new material profiles, and the base Method model now has a printer profile, meaning the whole Method series is now supported in Cura!
        • 5 replies
      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Thanks
          • Like
        • 3 replies
    ×
    ×
    • Create New...