Guest User

Untitled

a guest
May 21st, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. myCamera = for o in cameras where classof o != targetobject collect o -- get the data
  2.  
  3. myCam = myCamera[1] -- separe it in Camera
  4. if myCam.type == #target then
  5. (
  6. myCamTarget = myCam.target -- then Camera target
  7. )
  8. else
  9. (
  10. -- something which won't break your script
  11. )
  12.  
  13. myCamPosX = myCam.pos[x]
  14. myCamPosY = myCam.pos[y]
  15. myCamPosZ = myCam.pos[z]
  16.  
  17. myCamFov = myCam.curFOV --Fov already in degrees, just like octane!
  18.  
  19. myCamTargetX = myCamTarget.pos[x]
  20. myCamTargetY = myCamTarget.pos[y]
  21. myCamTargetZ = myCamTarget.pos[z]
Advertisement
Add Comment
Please, Sign In to add comment