So im working on this camera rig. Turns out that there is a realtionship between the Focal Length, the Aperature Width, and the Field of View… Fancy that, huh? lol.
Here is basically how it works, mathematically:
Field of Vision = 2 * arctan ( aperature / ( 2 * focal_length ) )
Focal Length = aperature / ( 2 * tan ( a / 2 ) )
Here is what the controller section of my script looks like.
parameters main rollout:FoV ( 'LinktoCamera' ui:FoVSlider type:#angle deftault:50 ) rollout FoV "Field of Vision" ( slider FovSlider "Field of Vision" Type:#float Range:[1,175,0] ticks:0 spinner focal "mm" Type:#float Range:[0.786,2062.596,0] spinner angle "deg" Type:#float Range:[0,175,0] spinner fstop "aperture" Type:#float Range:[0,100,35]
Now, my question is: without wiring externally, aside from the spinner to be wired the camera’s real FoV, would it be possible to make the Slider and Spinners interact as if they were all wired together? In other words, to make it so if i were to alter ‘focal’, both ‘angle’ and ‘FoVslider’ would update, and likewise, if i were to touch either of the other two, the corrisponding two would change to reflect it?