You can create a simple carousel using JavaScript API
1. Create a block layer with a 'magic' name-"SignStix_Carousel"
2. Add a WebView layer and drag this off the sign, this will be used for writing your
JavaScript
3. Set the URL as 'about:blank'
4. In 'Associating a folder' drag and drop the folder containing the images
you would like in your Carousel from 'Media Management'
5. Tick 'JavaScript API'
6. Edit the Javascript API, using the Javascript below will add a Carousel to your block with the images contained
//returns a JSON full of files matching the search parameter
var l_jsonFiles = JSON.parse(SignStixFiles.getFilesMatching("",".*" , false));
console.log("l_jsonFiles: " + JSON.stringify(l_jsonFiles));
var carouselLayer = SignStixGraphics.getLayerNamed("SignStix_Carousel");
for(var i = 0; i < l_jsonFiles.length; i++)
{
var obj = l_jsonFiles[i];
var ref = SignStixFiles.getFileRef(obj.path, obj.name);
carouselLayer.addCarouselImage(ref,"nothing");
}
function shiftUp() {
carouselLayer.carouselShiftUp();
}
// Set the last param here to the delay before changing images, 3000 is 3 seconds, 4000 is 4 seconds etc
setInterval(function(){ shiftUp() }, 5000);