Jump to content

Adding a custom setting to Cura to modify the size.


iFrostizz

Recommended Posts

Posted · Adding a custom setting to Cura to modify the size.

Hi!

 

I just started to develop plugins for Cura as I would need a shrinkage ratio that scales up the model.

I would like to add a setting that would be called XY shrinkage percentage that shoud be between 0 and 3% and I would add the multiplication of this percentage by the resizing of the model so that it would scale silently in X and Y and the user would still be able to resize his model using the tools on the left. Sadly, I am still a beginner in the development world but I have been able to create the plugin so that it would be displayed in Cura.

Now, I am in trouble for displaying the custom setting. I used the ZOffsetPlugin from fieldOfView to have a template: https://github.com/fieldOfView/Cura-ZOffsetPlugin/blob/35394c4f59b5a18f55bd471d7ea8c5012182c323/ZOffsetPlugin.py#L22 but it seems like it's not working as I don't see my setting appear.

Here is my repo is anybody could please take a look: https://github.com/iFrostizz/ShrinkageCompensationPlugin/tree/main/ShrinkageCompensationPlugin

Also, I am conscient that the setting is already in Cura but not available so maybe in the next update ?? But I am having fun learning these types of things 🙂

 

Thank you very much, have a nive day !

  • Link to post
    Share on other sites

    Posted · Adding a custom setting to Cura to modify the size.

    Cura already has a setting for shrinkage. It's still disabled by default, since we didn't get it done in time for release, but it can be changed already.

     

    It's called "Scaling Factor Shrinkage Compensation"

  • Link to post
    Share on other sites

    Posted · Adding a custom setting to Cura to modify the size.

    Thank you very much, I'll try that soon !

    Have a nice day

  • Link to post
    Share on other sites

    Posted · Adding a custom setting to Cura to modify the size.

    That worked, cool thanks! 🙂

    Also, I feel like the plugin devellopment sphere is a bit closed. What about creating a Discord server for Ultimaker Cura with support channel as well as devellopers channels, just like Octoprint does ? That would definitely make the community grow.

     

    Also, it was not fdmprinter.dev.json but  fdmprinter.def.json.

  • Link to post
    Share on other sites

    Posted · Adding a custom setting to Cura to modify the size.

    Whoops. That was a typo on my end!

    But yeah we could setup a discord server if there is interest for it.

    • Like 2
    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
        • 16 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.
        • 0 replies
    ×
    ×
    • Create New...