Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myCamera = for o in cameras where classof o != targetobject collect o -- get the data
- myCam = myCamera[1] -- separe it in Camera
- if myCam.type == #target then
- (
- myCamTarget = myCam.target -- then Camera target
- )
- else
- (
- -- something which won't break your script
- )
- myCamPosX = myCam.pos[x]
- myCamPosY = myCam.pos[y]
- myCamPosZ = myCam.pos[z]
- myCamFov = myCam.curFOV --Fov already in degrees, just like octane!
- myCamTargetX = myCamTarget.pos[x]
- myCamTargetY = myCamTarget.pos[y]
- myCamTargetZ = myCamTarget.pos[z]
Advertisement
Add Comment
Please, Sign In to add comment