- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Animated video grid in After Effects | SampleImage expression tutorial
It will be quite hard for weak computers, so be patient, even I have problems with the preview, but it renders pretty fast. I hope you enjoy this video!
If you know what I can improve in my videos, please leave a comment 🙏
My Instagram: https://www.instagram.com/synthymental/
Patreon: https://patreon.com/synthymental
Position expression:
// Setting parameters
shapeCompWidth = 50; // Shape composition width
compWidth = 1000; // Main composition width
// Calculate the number of items per row
itemsPerRow = Math.floor(compWidth / shapeCompWidth); // Calculate how many items fit in one row based on the composition width and spacing
// Calculate the position
x = (index - 1) % itemsPerRow * shapeCompWidth; // Calculate the x position using the index, spacing, and number of items per row
y = Math.floor((index - 1) / itemsPerRow) * shapeCompWidth; // Calculate the y position using the index, spacing, and number of items per row
[x, y] // Return the calculated position as an array
Time-remap expression:
// Define the target layer
target = thisComp.layer("Footage");
// Position for sampling the value
samplePoint = [transform.position[0], transform.position[1]];
// Sampling size
sampleSize = [1, 1];
// Get the value from the target layer
sample = target.sampleImage(samplePoint, sampleSize);
// Convert the value for use in time remap
// Assuming we're using the red channel (sample[0])
timeRemapValue = sample[0] * thisComp.frameDuration * 100; // Example scaling
// Return the value for time remap
timeRemapValue
Видео Animated video grid in After Effects | SampleImage expression tutorial канала synthymental
If you know what I can improve in my videos, please leave a comment 🙏
My Instagram: https://www.instagram.com/synthymental/
Patreon: https://patreon.com/synthymental
Position expression:
// Setting parameters
shapeCompWidth = 50; // Shape composition width
compWidth = 1000; // Main composition width
// Calculate the number of items per row
itemsPerRow = Math.floor(compWidth / shapeCompWidth); // Calculate how many items fit in one row based on the composition width and spacing
// Calculate the position
x = (index - 1) % itemsPerRow * shapeCompWidth; // Calculate the x position using the index, spacing, and number of items per row
y = Math.floor((index - 1) / itemsPerRow) * shapeCompWidth; // Calculate the y position using the index, spacing, and number of items per row
[x, y] // Return the calculated position as an array
Time-remap expression:
// Define the target layer
target = thisComp.layer("Footage");
// Position for sampling the value
samplePoint = [transform.position[0], transform.position[1]];
// Sampling size
sampleSize = [1, 1];
// Get the value from the target layer
sample = target.sampleImage(samplePoint, sampleSize);
// Convert the value for use in time remap
// Assuming we're using the red channel (sample[0])
timeRemapValue = sample[0] * thisComp.frameDuration * 100; // Example scaling
// Return the value for time remap
timeRemapValue
Видео Animated video grid in After Effects | SampleImage expression tutorial канала synthymental
Комментарии отсутствуют
Информация о видео
29 июля 2024 г. 19:51:35
00:16:17
Другие видео канала
















