Live Link FreeD doesn’t return the correct focal length for Panasonic UE-100 and UE-150

Hi @Jan_Boria11, hi everybody here is how my solution works:

You have two float Arrays (both the same length)

  • FreeD_Steps: The Focal Length values which FreeD returns when you change the Zoom of your PTZ (e.g. 0; 0.1; 0.2; 0.3; … ; 1)
  • Virtual_FLength_Steps: The correct Focal Lenth values which the virtual camera should have at the FreeD values from the other array(e.g. 3.8; 5.34; 7.5; 9.89; … ; 92.82)

=> The more FreeD / FocalLength value pairs you have the more accurate is going to be your zoom.

Now to the Blueprint:

  1. Get the Focal Length from the Live Link Frame and save it in a variable (Free D Cur Value)

  2. Check for each value in ‘FreeD_Steps’ if your ‘FreeD Cur Value’ is greater, equal or less

  • If its greater continue with the next index of the array
  • If its equal set the focal length of the virtual camera to the value at the same index in Virtual_FLength_Steps and break the loop
  • If its less map the range between the current and the last FreeD_Step to the range between the current and the last Virtual_FLength_Step (This is done in the collapsed graph ‘Map Range from FreeD to virtual FL’) and break the loop

If you don’t know what Map Range Clamped does, here you go:

@Jan_Boria11 if you or anyone else needs more help feel free to contact me (Just click on the Profile symbole next to my name and select Message :wink: )