Thor 1) change IP address of OAK
No way to do that inside the script node.
Don't think there is a way to do that either, but I'm pretty sure that triggering the exit()
will reboot the device. Not graciously though.
Thor 3) get focus or lens position
ImgFrame has getLensPosition()
method which you can use from inside the script node.
Thor 4) set sensor resolution
can't set sensor resolution during runtime anyway
Can't access it.