Thank you for your helpful info @zipit and for responding so quickly! This gives me a few alternatives to explore!
I'm also thinking of alternatives to using the built in "frame selected" functionality at all, with something like this general approach:
Sorry about not adding the tags. I currently don't seem to have access to the guidelines. When I try to go to this link https://plugincafe.maxon.net/guidlines_cp either by clicking the exclamation point icon at the top of the forum page or by pasting the link address directly, I get:
You seem to have stumbled upon a page that you do not have access to."
I have added the tags you mentioned.
I am marking this as "solved" since you have answered my question.
Using Python, I'm trying to "Frame Selected" for the current camera while running within a Thread.
When I run either of these two commands from outside the Thread, they work fine:
followed by this for safety:
But if I run these commands from inside the Thread, the framing doesn't occur. I need a Thread so the user can have a progress bar while I iterate over loading a bunch of objects, framing each object and rendering it. Everything is working except for the framing. Any helpful suggestions would be much appreciated! Perhaps it's just not possible? Thanks!