asche

07-27-2005, 10:36 AM

Hi ...

i want to write a mel/expression that keeps the object the same size in the cameraview, so u can change the Focal Length and the camera moves away/closer...

i found that the distance from the object can be determined through : sizeOfView/(2xtan(angleofview/2)) , where the sizeOfView means how much space u can see horizontally on your viewing plane

my problem : how do i get the angle of view ?

there is an angle value in the attribute editor but i guess no real angle attribute ...

i found a formula to calculate it (a=2xatan(S/(g-FL)/FL/g/2) with g=distance, fl= focal length, and S = ?! ....)

isnt there a more easy way to get the cameras angle of view?

thank you

phil

i want to write a mel/expression that keeps the object the same size in the cameraview, so u can change the Focal Length and the camera moves away/closer...

i found that the distance from the object can be determined through : sizeOfView/(2xtan(angleofview/2)) , where the sizeOfView means how much space u can see horizontally on your viewing plane

my problem : how do i get the angle of view ?

there is an angle value in the attribute editor but i guess no real angle attribute ...

i found a formula to calculate it (a=2xatan(S/(g-FL)/FL/g/2) with g=distance, fl= focal length, and S = ?! ....)

isnt there a more easy way to get the cameras angle of view?

thank you

phil