Giter VIP home page Giter VIP logo

Comments (6)

Tyronnosaurus avatar Tyronnosaurus commented on June 20, 2024 1

Solved in PR #745

from uranium.

Tyronnosaurus avatar Tyronnosaurus commented on June 20, 2024

In the meantime, I'd appreciate if anyone thinks of a workaround that can be implemented through a plugin instead of waiting for a future version of Uranium&Cura.

from uranium.

nallath avatar nallath commented on June 20, 2024

Ah, yes, now I remember. See fb8bde4 for a related change. It seems that we only enabled this for tools, so sorry for the confusion that I generated on the forums!

I think we just never updated this to also work with views as well.

from uranium.

Tyronnosaurus avatar Tyronnosaurus commented on June 20, 2024

No worries, I appreciate all the help I've been getting from you and the complexity of developing for Cura.

we only enabled this for tools

As in, multiple tools per plugin are supported, but multiple views were never officially supported? If so, I guess I should use only one View per plugin for now.

From my end I've only encountered this one error related to multiple views. Maybe we should consider PR'ing the solution above and adding official support for multiple views?

from uranium.

nallath avatar nallath commented on June 20, 2024

As in, multiple tools per plugin are supported, but multiple views were never officially supported?

Correct. We should have just enabled both while we were at it. I consider this to be an ovesight on our side.

From my end I've only encountered this one error related to multiple views. Maybe we should consider PR'ing the solution above and adding official support for multiple views?

Please do! A PR would save us time :)

from uranium.

Tyronnosaurus avatar Tyronnosaurus commented on June 20, 2024

Sure, I'll get on it. Just one detail:

  ...
  view_meta_data = list(filter(lambda view: view['name'] == view_name , view_meta_data))[0]  #Filter for specific View

For this filtering to work, these two items...

  • 'name' in the metadata dictionary from the plugin's __init__()
  • self._name in the View's instance (this is what's used for PluginName_ViewName nomenclature in PluginObject.getId())

... must be manually set with the same string value by the developer.
I'm studying the plugin registering process, to see if I can take advantage of the order in which Views are loaded, rather than filtering by name.

from uranium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.