Script to move a Camera's position to its target coordinates

Forums: Script to move a Camera's position to its target coordinates
A public forum for discussing and asking questions about OctaneVR.

Script to move a Camera's position to its target coordinates

Postby MB » Tue Jun 20, 2023 1:01 am

MB Tue Jun 20, 2023 1:01 am
All,

This script is very helpful in setting up a series of views to be included in a VR Tour for use by the Create VR Tour script (also posted on this thread). For instance, it is easy to set up a path for the tour to follow. It is well worth using the short cut 'ctrl T' if making such a path with many views.

Description/Instructions as follows.

-- This script moves the Camera's position to the current Camera's Target location.
-- In this way a user can position a Camera in the Scene by using Octane's
-- Target Picker in the render viewport.
--
-- Optionally the user can set the eye elevation to a specified height above the
-- current Target Position in the current Octane View. This way they can always
-- click on a floor or ground plane to specify the x/y location and the script will
-- set the y height consistently above that plane. The user can opt to create a
-- copy of the original camera node so that it is not lost when its position coordinates modified.
-- If the name of the original camera contains a numeral as its last character, and is optionally
-- copied, a new camera is created with the numeral incremented by 1. E.g. 'Working Camera 01' will
-- be retained, and a new camera with the new target and position parameters will be created an
-- named 'Working Camera 02'.

Best

Mark
Attachments
Move to Target Location.lua
(21.46 KiB) Downloaded 75 times
Windows 11, 2x Intel I9, 64GB Ram, 2x GTX 1080 TI, 1 x RTX 380 TI, Oculus Quest 2
User avatar
MB
Licensed Customer
Licensed Customer
 
Posts: 168
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.

Return to OctaneVR Questions & Discussion


Who is online

Users browsing this forum: No registered users and 2 guests

Wed May 08, 2024 10:39 am [ UTC ]