I am trying to connect the feed of a subviewport to a sprite3d after procedural generation is done. I can't have the camera be a child of the subviewport before launching the game. If I do, it causes the positioning to be lost. So, after the game is run and the map is generated, then I have to connect the camera as a child of the subviewport and connect the subviewport to the sprite3d texture. I can get it so that the subviewports are created but I can't reparent the Node3d (that holds the camera model and the camera3d) to the subviewport. I've got it to a point where the errors have stopped but now it is not creating the child of the subviewport like intended and the Sprite3D is not getting the subviewport path.
Notes regarding the code below:
The GlobalConnector.generation_complete is a Global that starts the code so that it doesn't try to find the cameras before they exist in the world.
The Security Cameras already exist as children of rooms, keeping their global positioning and such.