2018-02-10, 15:06
(2018-02-10, 05:30)Greg-Mega Wrote: Made a minor modification to this script last night to support 6 cameras in "All Camera" mode. Thought I would share it in case anyone wants 6 cameras in their preview.Sweet. Nice Work dude.
Screenshot: https://imgur.com/a/SvzVG
The changes I made to the code are all in the plugin.videosureillanceroom\resources\lib\allcameraplayer.py which i have uploaded here:
https://www.dropbox.com/s/rgdzr0qrgy3y7f...er.py?dl=0
Only 3 changes were required to the code above:
- Adjusting the coords array for the different layout and including the coords for the two addition cameras (line 56).
- Adjusting the animations array to define WindowOpen and WindowClose animations for the two additional cameras (line 67).
- Adjusting the loop to loop through 6 cameras instead of 4 (line 87).
There are still a couple of things I'll do eventually to neaten this up:
- Fix the animations array so they animate in and out correctly, at the moment the positioning is still for the 4 camera layout so they do some interesting things when they animate in and out but to be honest I'm likely to ditch the animation all together because it's a bit lame.
- The layout is one pixel off width wise, I can only tell when i remotely access my Kodi box on the TV i can't tell. It's off because 1280 / 3 = 426.6666666667px and I used 426px so it could be fixed by making a couple of the cameras 1px wider.