Selectable Camera position

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By banolka

Hi, I try to setup multiple view camera on 3d Scene. I’m using camera controls script for the mouse and keyboard.

I try to have a Menu Button with few predefined views for camera. I try tu use Position 3D with Camera as a child.

How to perform translation of Position3D to predefined rotation after clicking the button and to always show always same position after selection from buton despite previous movment of the camera?

:bust_in_silhouette: Reply From: Lopy

You can set all of the translation, rotation, scale, etc, properties of a Node3D inheriting object via their “transform” property.

First, get the desired Transforms, by adding a button that prints your camera’s. If you move a parent of the camera instead, print that.

Then, you can tell the Buttons to set the wanted Transforms back.

Thanks for the answer! It is very interesting to become more and more competent in your favorite topic! You helped a lot and saved time for others, in my case I would like to thank you and share with cool service that for 100% will also help you to save your time! You are welcome! :slight_smile:

Lilly123 | 2021-01-25 01:14