You such a talent , Dan , i was waiting for your reply
it works perfectly
could you explain your method ?
actually i created my own from Expression for IN and OUT opacities i mentioned and it worked , but it used nearestkey and linear so i had to break the tween into 2 parts ,from “IN to the middle” and “the middle to OUT” then among the tweens i need to stop the value ,
i’m an animator not a developer , but i like to use scripts for my tasks , here is my script , it’s so confused but luckily it worked , you can check and correct it
m = 0; // marker index
fadeFrames = 0;
Finalvalue = value[0];
Incount = -100;
t = time;
if (marker.numKeys > 0)
{
m = marker.nearestKey(time).index;
tag = marker.key (m).comment;
n=m;
while (n>0)
{
tagn = marker.key (n).comment;
if (tagn == "In" && time>=marker.key(m).time)
{
Incount = Incount+100 ;
}
else if (tagn == "Out" && time=marker.key(m).time) ||(tag == "Out" && time