509 posts
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+3 more
5p1r17 says

Can’t figure out how “valueAtTime + offset” works…. If I put value -1 on my Offset slider, then animation starts at 32-nd frame. if I put -0.5 value, then it starts at 20-th frame…. Very strange, at least for me :) (My comp framerate is 25fps).

Can you explain please how it works? :)

2286 posts aspire to create - create to inspire
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
+9 more
Creattive says

Can’t figure out how “valueAtTime + offset” works…. If I put value -1 on my Offset slider, then animation starts at 32-nd frame. if I put -0.5 value, then it starts at 20-th frame…. Very strange, at least for me :) (My comp framerate is 25fps). Can you explain please how it works? :)

if your first keyframe is on 7th frame then this makes perfect sense :)

5173 posts
  • Provided great contribution to our forums
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+12 more
felt_tips Moderator says

Can’t figure out how “valueAtTime + offset” works…. If I put value -1 on my Offset slider, then animation starts at 32-nd frame. if I put -0.5 value, then it starts at 20-th frame…. Very strange, at least for me :) (My comp framerate is 25fps). Can you explain please how it works? :)

Time is always measured in seconds and in that code fragment that I dashed off, I specified frames and forgot to convert… Oops!

But here’s roughly how it works….

myOffset = effect("Offset in Frames")("Slider").value; 
//let's assume the user sets this to 25 for a 1 second offset.

completion = thisComp.layer("Controller").effect("Completion %")("Slider"); 
// Note: a reference to the Completion % Slider OBJECT..... NOT it's value.

mySampleTime = time + framesToTime(myOffset); 
//Look! - I remembered to convert to seconds this time.

myCompletion = completion.valueAtTime(mySampleTime); 
// completion is just a shorthand for the slider object. 
// With the value of 25 that we put in before, the Completion % slider will be sampled 
// not at the current time, but 1 second ahead of the current time... 
// that means that for this layer, everything happens 1 second earlier, 
// because it's looking 1 second ahead of itself....

Does that explain it?

509 posts
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+3 more
5p1r17 says

I should have guessed…. framesToTime… :) Thanks Felt, now everything is clear now!

1817 posts Videohive author & moderator
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has referred 1000+ members
  • Helps us moderate the forums
+11 more
Mocarg Moderator says

My new project has over 1000 lines of code (expressions) almost no effects, works super fast, very user friendly and super useful :P Can’t wait to finish and upload! :D

599 posts
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+5 more
addeystock says

My new project has over 1000 lines of code (expressions) almost no effects, works super fast, very user friendly and super useful :P Can’t wait to finish and upload! :D

Can’t wait to see that :)

5173 posts
  • Provided great contribution to our forums
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+12 more
felt_tips Moderator says

My new project has over 1000 lines of code (expressions) almost no effects, works super fast, very user friendly and super useful :P Can’t wait to finish and upload! :D

I hope that’s 1000 unique lines Mo, and that you haven’t been cheating by cutting and pasting. ;-)

492 posts
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
  • Has been a beta tester for an Envato feature
+6 more
DoubleX says

My new project has over 1000 lines of code (expressions) almost no effects, works super fast, very user friendly and super useful :P Can’t wait to finish and upload! :D

Same here. Right now I just hope we are not creating the same thing :D /mine is full of pie charts and circle graphs, as a new project for envato’s most wanted/

1817 posts Videohive author & moderator
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has referred 1000+ members
  • Helps us moderate the forums
+11 more
Mocarg Moderator says


My new project has over 1000 lines of code (expressions) almost no effects, works super fast, very user friendly and super useful :P Can’t wait to finish and upload! :D
I hope that’s 1000 unique lines Mo, and that you haven’t been cheating by cutting and pasting. ;-)

Well i did use Copy/Paste A LOT! But i had to change some thing in every expression. It’s cool :)

1817 posts Videohive author & moderator
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has referred 1000+ members
  • Helps us moderate the forums
+11 more
Mocarg Moderator says


My new project has over 1000 lines of code (expressions) almost no effects, works super fast, very user friendly and super useful :P Can’t wait to finish and upload! :D
Same here. Right now I just hope we are not creating the same thing :D /mine is full of pie charts and circle graphs, as a new project for envato’s most wanted/

We are :D But why is that a bad thing? I don’t care if i get into Most Wanted or not i just want to make something unique…

by
by
by
by
by
by