R16 GetActiveObjects() and Undo()
On 21/09/2017 at 03:08, xxxxxxxx wrote:
In a commandplugin I am using GetActiveObjects() to get the order of the selection of active objects.
I also implemented Undo functionality, but it seems the Undo meshes up my original selection (sequence).
How can I get my original selected object - in the correct sequence - when using Undo?
Note: the number of objects in the GetActiveObjects() is correct, but the sequence is not correct.
Note: I tested it outside my plugin and indeed the selection sequence is changed!
I am testing and developing under R16.
It seems to be fixed under R17 and later, so I will continue under R17
On 22/09/2017 at 02:40, xxxxxxxx wrote:
GetActiveObjects() only orders the returned object if GETACTIVEOBJECTFLAGS_SELECTIONORDER is set. Do you set this flag?
Besides this, we can only support the latest release of Cinema 4D, so we can't say much about R16. Also, there won't be any updates for R16.
On 22/09/2017 at 04:50, xxxxxxxx wrote:
Ok, clear and yes I did set the flag.
In R17 and later this is no issue.