Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
GetActiveObjects(flags) with GETACTIVEOBJECTFLAGS_SELECTIONORDER works nicely, but is there a SetActiveObjects(flags) with a similar flag like GETACTIVEOBJECTFLAGS_SELECTIONORDER?
When I use doc.SetSelection(plane1, mode=c4d.SELECTION_NEW) and multiple times doc.SetSelection(new obj, mode=c4d.SELECTION_ADD), the sequence is incorrect. It seems random?
Hello,
the selection order is internally stored in the Object Manager. If you add an object to the selection you have to update an internal cache with GetActiveObject().
GetActiveObject()
See C++ documentation: Selections
and this thread: Adding to document selection issue
best wishes, Sebastian
@s_bach Ok, Thanks.