Hmm. If you need this just to do transitions between 2 different scenes, I think r3f/drei has existing mechanisms for that.
perhaps something like this? https://www.youtube.com/watch?v=DiKV1qkVZmw
for non r3f: three.js examples
Is any of this helpful?