FORUMS: list search recent posts

This property has no keyframe number 26 - Expression disabled

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Greg Antisdel
This property has no keyframe number 26 - Expression disabled
on Nov 4, 2014 at 3:41:34 pm

Hi,

I used the following expression, from Dan Ebberts on a post several years old, to control the time between two position keyframes. I now need to do the same thing only on a mask, but still just needing to control the time between the two keyframes.

When I apply it to the mask path I get the error "Expression Disabled: This property has no keyframe number 26."

I have changed the k1 and k2 variables just to see if it would work with different keyframes but to no avail. There are definitely keyframes on the layer.

Maybe this expression will not work with mask keyframes?

Greg

holdTime = thisComp.layer("Control").effect("Slider Control")("Slider")-1;
k1 = 26; // 1st hold keyframe
k2 = 27; // 2nd hold keyframe
p = transform.position;
t1 = p.key(k1).time;
t2 = t1 + holdTime;
if (time &lt; t1)
t = time
else if (time &lt; t2)
t = linear(time,t1,t2,t1,p.key(k2).time)
else
t = p.key(k2).time + (time - t2);
valueAtTime(t)


Return to posts index

Dan Ebberts
Re: This property has no keyframe number 26 - Expression disabled
on Nov 4, 2014 at 5:18:06 pm

I'm confused. The expression is looking for position keyframes. If you want it to for something else, you need to change this line:

p = transform.position;

probably to something like this:

p = mask("Mask 1").maskPath;


Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]