Git Product home page Git Product logo

bl_ui_widgets's Introduction

Blender UI Widgets

Addon with UI Widgets for a persistent (modal) draggable floating panel, textboxes, checkboxes, buttons and sliders for Blender 2.8 and newer versions.

The panel can stay open all the time in the 3D viewport during mesh editing. It is not only some kind of popup panel, it persists opened like the side bar or Blender's native N-Panel.

Each widget object has many attributes that can be set by the programmer to customize its appearance and behavior. One can opt to let the widgets automatically take the appearance of the selected Blender's Theme or can override any of the characteristics individually, and per widget.

The widgets are also fully scalable, bound to Blender's Resolution Scale configuration ("ui_scale") and/or by programmer's customization. It is also ready to get tied to an Addon Preferences setup page, as can be seen in this demo panel.

Not much documentation is available for now, but the code has a lot of annotations to help you out and each module has its mod log listing all added features. Also, at each module's init method you can find all available attributes described with detailed information.

The GPU module of Blender 2.8 is used for drawing. This package has a demo panel to showcase all available widgets so that you can install it and have a quick testing. It also serves as a template or a baseline for creating your own addons. I attempted to add a little bit of each feature to the demo code in order to help starters. Below follows some images taken from the demo panel itself.

Sample of the demo panel in the viewport

Viewport sample

Example of an Addon that uses these widgets

ReferenceCameras https://github.com/mmmrqs/Blender-Reference-Camera-Panel-addon

Widgets appearance

Widgets

A sneak peek at button's attributes

Code sample

Classes relationships for the BL_UI_Widgets

BL_UI_Widgets UML

bl_ui_widgets's People

Contributors

jayanam avatar mmmrqs avatar

Stargazers

 avatar  avatar  avatar  avatar

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.