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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Our picks

    • Ultimaker Cura 4.0 | Stable available!
      Ultimaker Cura 4.0 is mainly focused on the improved user interface and cloud integration.
      As always, we want to collect your user feedback for this release. If there are any improvements you can think of, feel free to mention it here and help us to shape the next release.
      • 98 replies
×
×
  • 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!