====== About the script ====== * Purpose : This script will place the items in an infinite looping row, so the camera movement is as smooth as possible. The items won't overlap, you can click them. * Author : [[https://plus.google.com/+TrianguloY|TrianguloY]] * Link: https://plus.google.com/+TrianguloY/posts/bV4rN8sNjQK (with video) ====== How to use the script ====== [Please note: I made the script time ago, and maybe it don't work now as expected. If so tell me in the link abobe] Instructions: * copy paste this script and set it at the position change event of a container (it will use all the items inside, so better a panel) * the items will need to be not pinned and detached from the grid. * Set the scrolling to free scroll. It automatically adapts if a new item is added or removed. However you will need to scroll one loop to update. Settings: change them as you want * maxsize: the maximum size the items will have * see: the number of items you will be able to see at once ====== Script code ====== /*Config */ var see = 5;// items you will see var maxsize = 2; //Max scale of the item var desk = LL.getEvent().getContainer(); var v = desk.getHeight()/2; var h = desk.getWidth()/2; var pos = desk.getPositionX(); if(h==0)return; var items = desk.getItems(); var n = items.getLength() var distance = 2*h/see; for(var i=0;i