[Bf-python] Override drawing of object with python
Campbell Barton
ideasman42 at gmail.com
Wed Jan 27 02:39:27 CET 2016
On Thu, Dec 17, 2015 at 3:39 PM, Brian Savery <brian.savery at gmail.com> wrote:
> Is there a way to override the drawing of an object for the view3d? (using
> python) I have a renderengine addon that has some extended light shapes for
> example disk and cylindrical area light shapes. Is there a way I could make
> the drawing of the lights for the the view3d using bgl a disk or cylinder?
>
> Best I found so far was to add a draw handler and draw the light with the
> corresponding shape. However, then you still have the original drawing of
> the area light present as well. Another option would be turning of draw
> visibility on the light but then it can't be selected.
Currently there is no way around this - you can draw before or after
existing objects, but you can't replace their drawing code.
> Thanks!
> Brian
>
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python
>
--
- Campbell
More information about the Bf-python
mailing list