Jump to content
Ultimaker Community of 3D Printing Experts

Adding a custom setting to Cura to modify the size.


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.

    If you change the fdmprinter.dev.json file and set the enabled property to true you can.

    You could also do it via code of course.

  • 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

      • Startups, apply for the Forward AM Innovation Award!
        Are you a startup using 3D printing? Perhaps you should continue reading... 
         
        Together with BASF we are launching the Forward AM Innovation Award - the very first global contest for startups developing new applications with 3D printing!
         
        Why apply?
        The winning startup will receive €100,000 in goods and services*, along with coaching and marketing exposure from top-notch leaders in the industry.
         

         
        Who can apply?
        Your startup creates products using Additive Manufacturing, is less than 5 years old, and has less than 50 employees. We are looking for 3D printing applications with a strong focus on innovation, sustainability and scalability.
         
        Dental aligners, shoes, tools, automotive parts, music instruments, industrial tooling and molding, medical implants, sports equipment, toys, architecture, fashion, construction... all are welcome to join!
         
        Do you have an innovative, sustainable and scalable idea that leverages the unique possibilities of 3D printing? Then it is time to apply!
        More information can be found here.
         
        Applications close on March 28th, 2021
        * What does "in goods and services" mean?
        The winner will be able to pick any item from the overall product and service portfolio of the sponsors, e.g. printers, materials, consulting, software... Choose whatever you need to accelerate your startup.
         
          • Like
        • 0 replies
      • New here? Register your Ultimaker for free 3D printer onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 0 replies
    ×
    ×
    • Create New...