502 posts
  • Europe
  • Has been a member for 4-5 years
  • Microlancer Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 10 and 49 users
  • Exclusive Author
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? :)

1673 posts aspire to create - create to inspire
  • Elite Author
  • Author had a File in an Envato Bundle
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
  • Germany
+1 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 :)

4789 posts
  • Elite Author
  • Community Moderator
  • Sold between 100 000 and 250 000 dollars
  • Author had a File in an Envato Bundle
  • Beta Tester
  • Has been a member for 4-5 years
  • United Kingdom
+5 more
felt_tips Volunteer 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?

502 posts
  • Europe
  • Has been a member for 4-5 years
  • Microlancer Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 10 and 49 users
  • Exclusive Author
5p1r17 says

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

1802 posts Videohive author & moderator
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Community Moderator
  • Referred more than 2000 users
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Contributed a Tutorial to a Tuts+ Site
+7 more
Mocarg Volunteer 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

594 posts
  • Author had a Free File of the Month
  • Sold between 10 000 and 50 000 dollars
  • Microlancer Beta Tester
  • Bought between 1 and 9 items
  • Referred between 10 and 49 users
  • Exclusive Author
  • Has been a member for 2-3 years
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 :)

4789 posts
  • Elite Author
  • Community Moderator
  • Sold between 100 000 and 250 000 dollars
  • Author had a File in an Envato Bundle
  • Beta Tester
  • Has been a member for 4-5 years
  • United Kingdom
+5 more
felt_tips Volunteer 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. ;-)

487 posts
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Microlancer Beta Tester
  • Bought between 10 and 49 items
  • Referred between 10 and 49 users
  • Most Wanted Bounty Winner
  • Slovakia
+1 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/

1802 posts Videohive author & moderator
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Community Moderator
  • Referred more than 2000 users
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Contributed a Tutorial to a Tuts+ Site
+7 more
Mocarg Volunteer 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 :)

1802 posts Videohive author & moderator
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Community Moderator
  • Referred more than 2000 users
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Contributed a Tutorial to a Tuts+ Site
+7 more
Mocarg Volunteer 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