content/hifi-public/cozza13/scripts/demo/movie_posters.js
Dale Glass 0d14e5a379 Initial data.
Needs a lot of cleanup. Data has been de-duplicated, and where identical copies existed, one of them
has been replaced with a symlink.

Some files have been excluded, such as binaries, installers and debug dumps. Some of that may still
be present.
2022-02-13 18:59:11 +01:00

31 lines
No EOL
1.1 KiB
JavaScript

var ENTITY_ID = {
id: "{d3a639e3-63c4-467b-9511-b342e207f0ae}",
creatorTokenID: 0,
isKnownID: true,
};
var IMAGE_URLS = [
"https://hifi-public.s3.amazonaws.com/models/advertisements%20/movies/hifi%20poster.jpg",
"https://hifi-public.s3.amazonaws.com/models/advertisements%20/movies/mockingjaypart1_theatricalposter_fandangowebsite.jpg",
"https://hifi-public.s3.amazonaws.com/models/advertisements%20/movies/horriblebosses2-ps-2.jpg",
"https://hifi-public.s3.amazonaws.com/models/advertisements%20/movies/2014_penguins_of_madagascar_xlg.jpg",
"https://hifi-public.s3.amazonaws.com/models/advertisements%20/movies/ddt_tsr1sheet_0620_1_sm.jpg",
];
var currentImageIdx = 0;
function showNextImage() {
currentImageIdx = (currentImageIdx + 1) % IMAGE_URLS.length;
var nextURL = IMAGE_URLS[currentImageIdx];
Entities.editEntity(ENTITY_ID, {
type: "Model",
textures: JSON.stringify({
"Hifi_x0020_Pitch_x0020_Deck_x0020_v5-1": nextURL,
})
});
print("Done updating");
};
showNextImage();
Script.setInterval(showNextImage, 10000);