MoI discussion forum
MoI discussion forum

Full Version: Groups - Moving Objects like SceneBrowser

From: stefano (LIGHTWAVE)
16 May   [#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:


Image Attachments:
Moi3D_Groups_Objects_Into_Perim.3dm - MoI.jpg