I have a lot of files. Each file contains a single groups. This group in turn consists of two further groups one of which has FaceMe behavior. Due to this the outer group gets a way too big bounding box. See image.
The problem here is to tighten the bounding box for the outer group in every file in a bulk operation. For some reason this seems very difficult to do in a simple way. The only reliable way I’ve found is to change the camera to orthographic front view, then wait (timer + observer) for Sketchup to pick up the new view. After this a very long edge is added to the group which is then removed and this makes Sketchup recalculate the bounding box correctly. (and yes…it seems bizarre that the correct bounding box calculation is dependent on the camera, but it really seems to be the case when dealing with FaceMe behavior…)
I don’t like this workflow because it introduces observers and timers and this does not work well since this is just a small part of a larger bulk operation and it forces other unrelated parts to work in an asynchronous manner. I want a normal linear script.
So, the question is, does anyone have a better solution?