[Bf-python] Storing “global” (per .blend file) addon properties

2019-02-18 Thread dima glib
Currently, there is no good place to store “global” (per .blend file) addon properties, but having it would be really useful for data which isn't specific to any existing ID datablock. WindowManager properties aren’t saved with the file (which is actually useful in some cases). So, right now, the

[Bf-python] Aggregate (multivalued) properties in the UI

2018-07-03 Thread dima glib
Hi, A question to Blender developers: in your opinion, would aggregate properties (i.e. showing/modifying state of multiple objects) be rather complicated to implement, or actually pretty easy? For example: layout.prop([obj1, obj2, obj3], "show_wire") would display a checkbox with on/off state

Re: [Bf-python] bpy.types.macro - use cases

2017-05-01 Thread dima glib
Indeed, bpy.types.Macro is a pretty useful mechanism which is left completely unexplained in the official documentation. I had no idea that stringing operators together is even possible until I accidenatlly stumbled upon Macro usage in someone's code. Just in case, here's one more link to a

Re: [Bf-python] Detecting when modal operators invoke and execute

2016-12-24 Thread dima glib
About a moth ago someone has suggested a patch which adds an access to bpy.ops.ed.undo_history menu items from python: https://lists.blender.org/pipermail/bf-committers/2016-November/047868.html There seemed to be no response from the main developers, unfortunately. You can, in principle, get a