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

      • 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
      • Ultimaker Cura 5.6 stable released
        Cura now supports Method series printers!
         
        A year after the merger of Ultimaker and MakerBotQQ, we have unlocked the ability for users of our Method series printers to slice files using UltiMaker Cura. As of this release, users can find profiles for our Method and Method XL printers, as well as material profiles for ABS-R, ABS-CF, and RapidRinse. Meaning it’s now possible to use either Cura or the existing cloud-slicing software CloudPrint when printing with these printers or materials
        • 48 replies
    ×
    ×
    • Create New...