Jump to content
Ultimaker Community of 3D Printing Experts
will_barley

Advice for creating a labelling plugin for Cura

Recommended Posts

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

Share this post


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 | a new interface
      We're not only trying to always make Ultimaker Cura better with the usual new features and improvements we build, but we're also trying to make it more pleasant to operate. The interface was the focus for the upcoming release, from which we would already like to present you the first glance. 
        • Like
      • 114 replies
    • "Back To The Future" using Generative Design & Investment Casting
      Designing for light-weight parts is becoming more important, and I’m a firm believer in the need to produce lighter weight, less over-engineered parts for the future. This is for sustainability reasons because we need to be using less raw materials and, in things like transportation, it impacts the energy usage of the product during it’s service life.
        • Like
      • 12 replies
×

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!