Jump to content
will_barley

Advice for creating a labelling plugin for Cura

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

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

×
×
  • Create New...

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!