Forum Replies Created

Page 2 of 7
  • Mitch Mann

    September 4, 2013 at 3:00 pm in reply to: hue/saturation change

    Seems like you’d be able to pull the color array out into individual R, G and B values, then have your other colors each be a certain offset on R, G and B from the original, and put it back together again.

  • Mitch Mann

    September 1, 2013 at 11:24 am in reply to: Expression between 2 layers’s opacity

    Perhaps something like this…

    myOpacity = linear(otherLayerOpacity,0,100,100,0)

  • Hmm, no solutions, but I’ve got a couple things you could try…

    Before running the script, see if it makes any difference which window is active- Timeline, project window, comp window, etc.

    Also, try calling the open comp by activeItem instead of the comp name and see if that makes a difference.

  • You could have your script save a text file. Text file could contain javascript that gives the values to your variables. Script would load the text file and execute it when it starts up.

  • Mitch Mann

    July 31, 2013 at 9:46 pm in reply to: Counter Time Expression

    Just make another text layer that pops on at the end with the extra decimals.

  • Mitch Mann

    July 31, 2013 at 1:10 pm in reply to: Counter Time Expression

    Make a text layer and make a slider effect. Have the source text linked to the slider’s value with Math.round to prevent too many decimal places. Then two key frames on the slider and there you are.

  • Mitch Mann

    July 30, 2013 at 1:31 pm in reply to: Position in timeline-row

    Check out moveBefore() and moveAfter() methods.

  • Mitch Mann

    July 25, 2013 at 5:45 pm in reply to: automating rotation across multiple layers

    Hmm. Here’s how I might approach it…

    Lay out all of the windmills by hand. On any given line, have the lower windmill’s rotation equil the top (source) windmill’s rotation. Then you could multiply (or divide) that rotation value for each windmill by its layer’s layer number minus the source windmill’s layer number. That way, the lower down ones would be different speed from the higher up.

    Then to drive the rotation of the top (source) windmills’ rotations… If you want a visual way, you could make virtual sliders on the screen. Put a null above each string, then make an expression that uses Dan’s formula to have the y value of the null drive the source windmill’s speed. Move the null for a string up & down to control rotation speed. Or you could just do the same thing with sliders instead of null y-values, but it wouldn’t be visual right in the comp.

    I don’t know, that’s how I’d do it.

    Mitch

  • This will give you the comp time where the clip starts:

    thisLayer.startTime

    This will give you the layer time where the clip starts:
    (40 seconds in your example, no matter where the clip occurs along the comp timeline):

    thisLayer.inPoint - thisLayer.startTime

  • Just use a track matte, I’m not sure why you need expressions here.

Page 2 of 7

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