Blender 2.8 Python : Draw Shapes in 3D View

preview_player
Показать описание
Here is a new Blender 2.8 video in which I paint into the 3D view using a Python addon and the modules GPU, Blf and Bgl.

I registered 2 draw handlers, one for adding text to the view (2d, POST_PIXEL) and another one for 3d (POST_VIEW).

I draw lines along vertices that I add when I click in the view with the left mouse button and then I use this shape to create a plane from this, a mesh, that you can extrude afterwards.

My previous #Blender addon tutorial can be found here:

I will integrate this functionality into my hardsurface fast carve addon, that can be downloaded here for free, also for Blender 2.8:

This experimental addon I also added to my github, you can get it here for free to play around with it:

See my social profiles here

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

I just finished my first script and I have to say, after spending many hours trying to find answers on YouTube, your videos are head and shoulders above most of the garbage out there.

crookedvertex
Автор

thank you so so much for sharing your work! :) please keep it up they are awesome

alhdlakhfdqw
Автор

This tutorial is really helpful for blender beginners, thanks for sharing ^ ^

Homing
Автор

Please make a tutorial for blender python beginners. There aren't that much out there

EarthisaCylinder
Автор

This is a very interesting Blender tutorial I love it.😃👍

Numocron
Автор

I'm trying to modernize Blender scripting, particularly I am developing Blender-Vraag, which is mostly a library for constructing scenes and geometry and blender-async which brings network programming and Jupyter integration to Blender. If you're interested, take a look!

Andreas-ghis
Автор

Jayanam, poderia me ajudar?estou criando um Addon(tentando)
mas estou com dificuldade de vincular parte do script com um botão(nesse caso UI menu)
e como posso executar vários comandos com apenas um botão?
exemplo: com um clique mover objeto a determinada coordenada e aplicar um modificador como o solidify
com apenas um botão?

maicomcoelholopes
Автор

I've been messing with Bing/chat gpt, but I was wondering if it would be possible to draw an N-gon that snaps to 45 degree increments? Box cutter does this, but it has so much extra stuff and I only use the n-gon and thought it would be nice to code my own simple version.

LawrenceAaronLuther
Автор

Is there a way to be able to draw in perspective view?it will be awesome.
I try to find by myself but...😥
But i saw differents type of interesting shader like LINES_LOOP or 'TRI_FAN'...

skwadfpv
join shbcf.ru