Jump to content

Adding custom material settings


Recommended Posts

Posted (edited) · Adding custom material settings

Hello. I'm trying to add custom material settings (namely Young, Poisson and shear coefficients) to be used by another part of my plugin. I don't mind putting them in any location of the attached screenshot.


I've been checking the code in Cura, Uranium and fieldOfView's MaterialSettingsPlugin. From what I understand, Cura comes with a massive list of settings in which I can set their visibility, but I can't add or remove items. Is there something I'm missing? Thanks.


Edited by Tyronnosaurus
  • Link to post
    Share on other sites

    Posted · Adding custom material settings

    And Cura-ZOffsetPlugin too, though the Linear Advance one is a bit nicer because it uses a "familiar" json file instead of a dict.


    Note that the method I use in both plugins is not officially sanctioned. There is some "illegal" access to "private" variables, and it is a bit of a magic incantation that seems to work. It might break at any Cura update, though the method of adding settings has been fairly stable so far. I did my best to document how it works.

    • Like 1
    Link to post
    Share on other sites

    Posted (edited) · Adding custom material settings

    For showing the settings in the Print Settings on the Materials pane of the preferences, I recommend using my Material Settings plugin. That requires even more "illegal" hacking to "copy" into your own plugin and it will be hard to make something that can be run side-by-side with that plugin.

    Edited by ahoeben
  • Link to post
    Share on other sites

    Posted · Adding custom material settings

    Hey ahoeben, thanks for answering and for your work in those plugins. I've made the basic functionality work (adding new profile parameters like in Linear Advance Plugin) and it works perfectly.


    Right now I was coincidentally looking into the Material Settings Plugin and wondering if it was worth it to do the same, considering future compatibility issues. I'd prefer having the settings associated to a material rather than a profile, but as a compromise I can simply use the Material Settings Plugin in parallel and, if it eventually breaks, my plugin will still work with the settings in the profile menu.

  • 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.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
          • Like
        • 18 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    • Create New...