[Bf-committers] access selection order via Python (Ton Roosendaal)
mneko at freemail.hu
Thu Feb 26 22:17:53 CET 2015
Just an idea: perhaps you can get this selection order information if
you analyze the contents of the undo buffer.
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 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 many purposes
> to retrieve the selection order for an operation (e.g. hierarchical
> parenting, drawing a curve through all objects).
> The responses to my request here
> and in particular this hack to make selection order available
> demonstrates a generic interest in this feature.
> Is it technically very difficult to implement it, so that it is
> available via bpy.context.selected_objects? When someone here could
> point me to the corresponding c-files, I would give it a try and check
> it out for my own. Unfortunately, I haven't any experience with Blender
> development right now.
> Bf-committers mailing list
> Bf-committers at blender.org
More information about the Bf-committers