Jump to content

Dear CURA developers - can you please make the following change?


Recommended Posts

Posted · Dear CURA developers - can you please make the following change?

Is it maybe possible to create a new param for CURA-plugins,

called "none", "description" or whatever, that does NOT create the standard text box - that would be very useful for readability and so on...

It would be just 2-3 lines new code at pluginPanel.py ;)

edit: see here (post #5) for an example and code:

http://umforum.ultimaker.com/index.php?/topic/10177-dear-cura-developers-can-you-please-make-the-following-change/&do=findComment&comment=98753

 

  • Link to post
    Share on other sites

    Posted · Dear CURA developers - can you please make the following change?

    That's axactly right, I already changed it here at my local copy of Cura, but if I use it now in my plugin nobody else can do. A breakline like '<br \>' would be nice also. Anyway with a label i can just use '---------------' if necessary.

     

  • Link to post
    Share on other sites

    Posted · Dear CURA developers - can you please make the following change?

    Luck for what? That they implement it you mean?

    It's really not a big deal... I hope they do it.

    damn1 0.1 curaplugincode 2

    Not the very best solution but a good one without too much effort:

    change no. 1 at pluginPanel.py:

    replace line 112:

     


    s.Add(wx.StaticText(pluginPanel, -1, param['description']), pos=(3+i,0), span=(1,2), flag=wx.LEFT|wx.RIGHT|wx.ALIGN_CENTER_VERTICAL,border=3)

    with

     


    if param['description'] == '---' and param['type'] == 'none':
    s.Add(wx.StaticLine(pluginPanel), pos=(3+i,0), span=(1,4), flag=wx.EXPAND|wx.LEFT|wx.RIGHT,border=3)
    elif param['description'].startswith('b_'):
    ctrl = wx.StaticText(pluginPanel, -1, (param['description'])[2:])
    tmp = ctrl.GetFont()
    tmp.SetWeight(wx.BOLD)
    ctrl.SetFont(tmp)
    s.Add(ctrl, pos=(3+i,0), span=(1,2), flag=wx.LEFT|wx.RIGHT|wx.ALIGN_CENTER_VERTICAL,border=3)
    elif param['description'].startswith('m_'):
    s.Add(wx.StaticText(pluginPanel, -1, ((param['description']).replace(r'\n','\n'))[2:]), pos=(3+i,0), span=(1,2), flag=wx.LEFT|wx.RIGHT|wx.ALIGN_CENTER_VERTICAL,border=3)
    pass
    else:
    s.Add(wx.StaticText(pluginPanel, -1, param['description']), pos=(3+i,0), span=(1,2), flag=wx.LEFT|wx.RIGHT|wx.ALIGN_CENTER_VERTICAL,border=3)

    change no. 2 at pluginPanel.py:

    insert before line 123

     


    else: #standard text box

    the following

     

     


    elif param['type'].lower() == 'none':
    pass

    Then you can print with params...

    ... an empty second colum by type:'none'

    ... a line by description:'---' and type:'none'

    ... a bold text by 'b_' before the description

    ... use \n as newline by 'm_' before the description

     

  • Link to post
    Share on other sites

    Posted · Dear CURA developers - can you please make the following change?

    Do the plugins run properly like that? No problems in pluginInfo.py?

     

  • Link to post
    Share on other sites

    Posted · Dear CURA developers - can you please make the following change?

    @Dim3nsioneer: everything is fine so far ;)

     

     

    You should clone the source code from https://github.com/daid/Cura

    using git, make your edits and submit them as pull request. That way your edits can be automatically merged with the existing code, if the code is up to standard.

     

    well, my solution is really quick and not sophisticated.

    if you can tell me that you will definitely include it when it is ready, then I will invest more time in a better way for the formatting options, ... (and use github)

     

  • Link to post
    Share on other sites

    Posted · Dear CURA developers - can you please make the following change?

    hey again, you are right dimensioneer, the update-process doesn't work anymore... but as I said... will wait for bagels answer

     

  • Link to post
    Share on other sites

    Posted · Dear CURA developers - can you please make the following change?

    I found an other way to modify the pluginbox within the plugin, thank you anyway

     

  • 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

      • Help Us Improve Cura – Join the Ultimaker Research Program
        🚀 Help Shape the Future of Cura and Digital Factory – Join Our Power User Research Program!
        We’re looking for active users of Cura and Digital Factory — across professional and educational use cases — to help us improve the next generation of our tools.
        Our Power User Research Program kicks off with a quick 15-minute interview to learn about your setup and workflows. If selected, you’ll be invited into a small group of users who get early access to features and help us shape the future of 3D printing software.

        🧪 What to Expect:
        A short 15-minute kickoff interview to help us get to know you If selected, bi-monthly research sessions (15–30 minutes) where we’ll test features, review workflows, or gather feedback Occasional invites to try out early prototypes or vote on upcoming improvements
        🎁 What You’ll Get:
         
        Selected participants receive a free 1-year Studio or Classroom license Early access to new features and tools A direct voice in what we build next
        👉 Interested? Please fill out this quick form
        Your feedback helps us make Cura Cloud more powerful, more intuitive, and more aligned with how you actually print and manage your workflow.
        Thanks for being part of the community,

        — The Ultimaker Software Team
        • 0 replies
      • Cura 5.10 stable released!
        The full stable release of Cura 5.10 has arrived, and it brings support for the new Ultimaker S8, as well as new materials and profiles for previously supported UltiMaker printers. Additionally, you can now control your models in Cura using a 3D SpaceMouse and more!
          • Like
        • 18 replies
    ×
    ×
    • Create New...