View all expressions
Conditional

Layer Visibility Based on Day of the Week

Reads today’s weekday from your computer clock and sets layer opacity to 100% only if it matches your chosen day.

Contributed by:


// Opacity property
days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
targetDay = "Tuesday";
// Change this to desired day
today = days[(new Date(Date.now())).getDay()];
today == targetDay ? 100 : 0;

Layer Visibility Based on Day of the Week

Practical use case

Show or hide graphics automatically on specific weekdays - ideal for daily promos or social-media templates used in After Effects automation.

Check out similar expressions

Data-driven video workflows for After Effects are easier with Plainly.

a mesh of elegant lines transparent image