Expression 1 - Change the frame value to suit the amount of layers you have. // Total cycle length: 1 frame on, 7 frames off var cycleLength = 8; // 1 + 7 // Calculate the current frame number var currentFrame = Math.floor(time / thisComp.frameDuration); // Determine the frame's position within the current cycle var frameInCycle = currentFrame % cycleLength; // Set opacity: 100% if the first frame in the cycle, 0% otherwise if (frameInCycle == 0) { 100; // visible for 1 frame } else { 0; // invisible for the next 7 frames }
@VIDEV010 ай бұрын
Expression 2 seed = Math.floor(time * thisComp.frameDuration * 1000); // Seed based on time seedRandom(seed, true); // Seed the random function to change every frame randomValue = Math.floor(random(1000, 9999999)); // Generates a random number between 1000 and 9999 randomValue.toString();