Allow script to set light properties for all the avatars

Any change in avatar's local light property with the script will change for all the avatars listed in avatar manager.
coding standard: move { to previous line