Groups - Moving Objects like SceneBrowser

 From:  stefano (LIGHTWAVE)
11995.1 
In MoI scripting, is there a supported way to programmatically move an existing object into an existing Scene Browser group;
same behavior as manually dragging/moving an object into a parent group in the Scene Browser)?

I can read ownerGroup, and group.objects.addObject(obj) exists, but neither seems to update
the Scene Browser hierarchy/database registration.

Goal:

rectangle/perimeter object acts as a container
script finds objects inside perimeter
script inserts those objects into the rectangle’s existing parent
Scene Browser group while preserving object names

What is the correct/supported approach?





Intended result:


EDITED: 18 May by LIGHTWAVE