godot add camera to node dynamically code example
Example: projection on image from camera in godot
var img = camera.get_viewport().get_texture().get_data()
var tex = ImageTexture.new()
tex.create_from_image(img)
get_node("c").texture = tex