Download

Reversing Time for a seamless Animated Material Mask

Yo!

I’ve got a system working that reverses the time output to drive an opacity mask so that the mask fades in and out. I’m basically using an If function to determine if the Trunk of the time is even or odd and then outputting either the frac or the 1-frac. My method of determining even or odd is dividing by 2, ceiling it, subtracting it from original truncated number and using ‘if’ to see if its the same as the frak divided by 2 - This also doesn’t work for the number 1 so I had to work around that as well. All in all it works but it feels super convoluted, messy and inefficient. Is there any better way to achieve this?

Thanks :slight_smile: