Forum Replies Created

Viewing 11 - 20 of 36 posts
  • Chris Scalzo

    June 6, 2017 at 3:26 pm

    could also do this if camera changes or if using in multiple comps with different camera names.

    cam = this_comp.active_camera;
    value + [ 0, 0, cam.position[2] / 2 ]

  • Chris Scalzo

    June 6, 2017 at 3:11 pm

    I assumed the rounding error would increase the likelihood that you wouldn’t hit that exact time ever.

    eg. if you set keyframe at 10s the value of “time” wouldn’t be exactly 10.

    try creating a text layer and in the text source at the expressions”time”. go to 10 seconds and you will see what I mean. Plus your expression wouldn’t add that value permanently to the value. just when it hit that time exactly and would change back. if you count the markers with some type of nummarkers expression you could add the to the value when greater than nearest marker your amount you wanted to add times the number of markers you passed.

    If I am incorrect, someone please correct me.

  • Chris Scalzo

    June 6, 2017 at 2:30 pm

    I forgot to round both numbers off.. try this.

    if ( time.value.toFixed(3) == thisComp.marker.nearestKey(time).time.toFixed(3) ) {

  • Chris Scalzo

    June 6, 2017 at 2:28 pm

    Maybe something like this would work for you. (sorry working on 3 others things and no time to test.

    if ( time.value.toFixed(3) == thisComp.marker.nearestKey(time).time ) {

  • Chris Scalzo

    June 6, 2017 at 2:11 pm

    did you want it to move if it is greater than that time or exactly at that time? (note, it might not be exactly at that time on any frame)

  • Chris Scalzo

    May 30, 2017 at 9:43 pm

    Ps. This the the pixel dimsions of the text itself. The bounding box the text is inside is not measureable.

  • Chris Scalzo

    May 30, 2017 at 9:39 pm

    What you are probably looking for is SourceRecAtTime. Many youtube videos and forum posts explaining it.

    var mytext = thisComp.layer(“text”);
    ;text width = mytext.sourceRectAtTime().width;
    ;text height = mytext.sourceRectAtTime().height

  • Chris Scalzo

    May 26, 2017 at 2:53 pm

    if I jsut read the value that inPoint provides, it is off by 2 seconds from the start of that layer. The layer is a precomp and I am sure it is some type of bug or something I am overlooking with the precomp. I will try on a new comp layer when I get some time, but thanks for your help as always to assure I am not crazy

  • Chris Scalzo

    May 26, 2017 at 1:27 pm

    I wanted to keep it simple to trouble shoot, so it is just on a slider control. if I duplicate the layer it works fine. If I copy the slider control to new layer, it starts 2 seconds earlier than inpoint of that new layer.

  • Chris Scalzo

    April 20, 2016 at 7:55 pm

    yes, but the original number was 109.85 which was rounded to 109.8 lol.

Viewing 11 - 20 of 36 posts

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy