When the server is loaded currently its configuring the UI with the last saved settings. This is not a bad thing until you start fussing with different cameras with different default values. Its best to load the UI with the default camera settings then have a button to load the saved settings and maybe do something like:
if saved setting is out of range of the min and max value from the camera settings then set to the nearest min or max default value.
Make this more readable
If lensPosistion is saved to 32 but camera has lensPosistion: (0,20,0) - which is min, max, default... then instead of setting lensPosistion to 32... set it to 20 instead.
When the server is loaded currently its configuring the UI with the last saved settings. This is not a bad thing until you start fussing with different cameras with different default values. Its best to load the UI with the default camera settings then have a button to load the saved settings and maybe do something like:
if saved setting is out of range of the min and max value from the camera settings then set to the nearest min or max default value.
Make this more readable
If lensPosistion is saved to 32 but camera has lensPosistion: (0,20,0) - which is min, max, default... then instead of setting lensPosistion to 32... set it to 20 instead.