Blender 2.8 UI Widgets : Checkbox with Python

preview_player
Показать описание
In this Blender 2.8 and Python video I show the new Checkbox widget that I added to my UI widgets addon.

You can add the checkbox like the other widgets in the init method of the BL_UI_Widgets_Operator for example on a dragable panel widget.

I explain how the Python API is used and lso how it is implemented in detail.

The checkbox works by clicking with the mouse but I also implemenetd the Click and Hover selection that you know from the defaul Blender checkboxes that you can use on panels e.g. for Bool-Properties.

Here you can get the Blender UI Widgets Addon for free:

See my social profiles here

Рекомендации по теме
Комментарии
Автор

You're jmesh tools are great but this.. this here, an update on this is what Im waiting for (y)

Corza
Автор

In the FC panel you should add an "harden normal" chekbox and the segments of the bevel under the bevel width ... Maybe

skwadfpv
Автор

Thanks for a good tutorial of your UI widget development. I noticed in the Github there is a Textbox widget (bl_ui_textbox.py). It is not part of the main demo drag_panel_op.py. I also see it has been modified recently (1/21). Any comment on it being part of the main demo? All of your Blender tutorials are well done and very helpful.

ArnieWiddowson
Автор

Interesting! I'll have to check out your library some time. (Putting it off for now because last time I tried to upgrade to 2.8, it unfortunately had a small, but show-stopping bug on my system, so currently I still have 2.79 installed.)

Btw., did you know that glLineWidth isn't really cross-platform, in that a GL implementation doesn't need to support widths above 1? Potentially this could be problematic, especially for users with high-dpi displays. Not sure how compatibility is on systems of actual blender users.

One possible work-around would be to build them out of triangles and either render those every time, or cache the images in a texture.

nex
Автор

What about a library with items like images? or a scroll-able one

wayon
Автор

Hi Jayanam. Thank you for this awesome UI widget kit, it is one of the most useful things for Blender. I do hope you've got a minute to check this post, because I'm bumping in some issues that you may want to help... Installed the UI widget on Blender 2.93 and it works alright, however I noticed two error messages looping out all the time in the system console output window:
- "ReferenceError: StructRNA of type DP_OT_draw_operator has been removed", from bl_ui_draw_op.py", line 82, in draw_callback_px
- "AttributeError: 'NoneType' object has no attribute 'height'", from bl_ui_widget_py, line 128, in get_area_height
besides those issues above, I've noticed that the images for the two buttons are not being displayed.

I would appreciate so much if you had some feedback in these regards, Thanks!!

mmmrqs
welcome to shbcf.ru