Last active
October 21, 2016 19:27
-
-
Save dokluch/84fa39b135f8615c2b431b336d732f10 to your computer and use it in GitHub Desktop.
Сначала задать поведение свойства с нулевого кадра (например резкое изменение до 100 и плавный спуск до 0), и потом просто ставить маркеры на слое, чтобы вызывать это поведение
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n = 0; | |
if (marker.numKeys > 0){ | |
n = marker.nearestKey(time).index; | |
if (marker.key(n).time > time) n--; //проверка | |
} | |
if(n>0){ | |
try{ | |
t = time-marker.key(n).time; //время прошедшее с маркера | |
thisProperty.valueAtTime(t+thisProperty.key(1).time); | |
} | |
catch(err){thisProperty.valueAtTime(0)}; | |
} | |
else thisProperty.valueAtTime(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment