losowe video z kompozycji
myComp = comp(name);
n = myComp.numLayers;
seedRandom(index+101,true);
theLayers = [];
for (i = 1; i <= n; i++) theLayers[theLayers.length] = i;
for (i = 0; i < theLayers.length; i++){
idx = i + Math.floor(random(theLayers.length - i));
temp = theLayers[i];
theLayers[i] = theLayers[idx];
theLayers[idx] = temp;
}
accumDur = 0;
for (i = 0; i < n; i++){
myLayer = myComp.layer(theLayers[i]);
nextDur = myLayer.outPoint - myLayer.inPoint;
if ((time >=
myComp = comp(name);
n = myComp.numLayers;
seedRandom(index+101,true);
theLayers = [];
for (i = 1; i <= n; i++) theLayers[theLayers.length] = i;
for (i = 0; i < theLayers.length; i++){
idx = i + Math.floor(random(theLayers.length - i));
temp = theLayers[i];
theLayers[i] = theLayers[idx];
theLayers[idx] = temp;
}
accumDur = 0;
for (i = 0; i < n; i++){
myLayer = myComp.layer(theLayers[i]);
nextDur = myLayer.outPoint - myLayer.inPoint;
if ((time >=

























No więc, małymi kroczkami do przodu. Jak mówiłem pomyślałem o użytkownikach trybu automatycznego i zrobiłem takie coś dla mojego CSS na Facebooka. Ustawione sztywne godziny 18-7 rano. Kod nie jest jakiś mega ekstra wypasiony, ale pierwszy raz mam jakąś styczność z JS/Jquery, jak na pierwszy raz zrobić coś co działa (chyba ( ͡° ͜ʖ ͡°) ) jest dość dobrym osiągnięciem.