I wonder if someone could help me a little conceptually.
In a script I am adding instances of an object to a group. Each instance ends up being selectable in the scene tree, and having its own bounding box in the viewport at the centre of the instance, as I want to be the case. What isn't present is the group's bounding box, and the group centre is at the origin, regardless of where the group actually is.
First off, is this expected behaviour? I was rather expecting adding the instances to the group to automatically update the group Bounding Box and centre (all part of the adding method). If it is expected behaviour, is this the sort of thing where the new origin is found by simply adding up all the instances' origins and dividing by number of instances would do it? And then going through the bounding boxes and finding max/min values for in all contributing instances would be enough to calculate its position?
Finally, is there something similar to these I have not mentioned that I need to consider? I can't give a suggestion because I don't know what I am ignorant of..! I have been trying to follow the DAZ sample script on adding like instances to a group, but there are a few occasions where methods are called that end up in errors because the methods don't seem to be part of the current version of the objects (DzInstanceNode::getPreviewControl() and DzInstanceNode::getCopyModeControl() are two such such examples) or in the documentation. It does make things somewhat more difficult to work through when such things happen, so I do apologize if I am asking questions that should be obvious.
Regards,
Richard