About the default camera turn VR camera

Source: Internet
Author: User

Uh... 15 Starts ~

Last year I wanted to write a script about the default camera to VR camera, then did not finish writing, today accidentally turned and finished, and the idea is completely different from the original, increased whether to delete the original camera and whether to convert the selected camera options.

Due to the confusion of the domestic VR version, the middle adds the English version of the adaptation.

fn Cam_to_vrcam sel: #off del: #on = (Local Sel_cam = # () Local Del_cam = # () Case Sel of (#off: Cams = Cameras#on:cams = Sel _cam + selection) Case of ((Vrayphysicalcamera! = undefined): Yy_vrcam = Vrayphysicalcamera Isselected:on (VR physical camera! = Undefi Ned): Yy_vrcam = VR physical Camera isselected:on (vr_ physical camera! = undefined): Yy_vrcam = vr_ physical camera isselected:on--Default:) for C=1 to Cams.count Do (if (classof cams[c] = = Freecamera) or (classof cams[c] = = Targetcamera) do (Yy_new_cam = copy yy_vrcamtry CA Ms[c].type = #free catch () Yy_new_cam.rotation = Cams[c].rotationyy_new_cam.pos = Cams[c].posappend Del_cam cams[c])) Delete Yy_vrcamcase del of (#on: for D in Del_cam do delete D#off: ()))--Convert the default camera to a VR physical camera Cam_to_vrcam SEL: #on del: #on

Find a simpler way to continue modifying ~

About the default camera turn VR camera

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.