Re: [Bf-committers] access selection order via Python (Ton Roosendaal)

2015-02-27 Thread Angus Hollands
You can do this by creating a modal operator / scene update handler which checks the currently selected object. Whether you *should* do this, remains to be seen. ___ Bf-committers mailing list Bf-committers@blender.org

Re: [Bf-committers] access selection order via Python (Ton, Roosendaal)

2015-02-27 Thread Martin Pyka
Sounds good as a first start. How can I read the undo buffer via Python? I just found bpy.ops.ed.undo_history(), but this command doesn't allow me to see the command list like in the UI!? Thx for the suggestion, Martin On 02/27/2015 12:00 PM, bf-committers-requ...@blender.org wrote: Just an

Re: [Bf-committers] access selection order via Python (Ton, Roosendaal)

2015-02-27 Thread Jacques Lucke
Hey all, I just want to share how I solved this problem for the Animation Nodes addon. I use the scene_update_post event and check if the selection changed here: https://github.com/JacquesLucke/animation-nodes/blob/master/utils/mn_selection_utils.py [2] I know that this solution isn't optimal

Re: [Bf-committers] access selection order via Python (Ton Roosendaal)

2015-02-26 Thread Martin Pyka
Dear Ton, thx for the response. That info is not used by tools in Blender nor is it foreseen to be coded. I also think it's bad practices for tools to require that (especially when it's not visualized and not generic applicable). I respectfully disagree with that. It could be useful for

Re: [Bf-committers] access selection order via Python (Ton Roosendaal)

2015-02-26 Thread Fazekas László
Just an idea: perhaps you can get this selection order information if you analyze the contents of the undo buffer. Bests, Fazek 2015-02-26 20:34 keltezéssel, Martin Pyka írta: Dear Ton, thx for the response. That info is not used by tools in Blender nor is it foreseen to be coded. I also