Then animate the position of the first layer.Ī much less labor-intensive workflow would be to create your end credits in Illustrator with precisely the format you want. SrcHeight = sRc.sourceRectAtTime().height / 2 Try adding this expression to each additional layer in the stack. The anchor point must be in the middle of the shape layer, and it should be a rectangle. The first layer in the stack has no position expression. If you want to stack layers using sourceRectAtTime(), you need to tie in position, height, left, width, and scale efficiently. Here's the expression: targetLayer = thisComp.layer("Name Name Name Name") Then I re-typed the fourth line from scratch, and the error went away. I fixed those problems and still got the error. The second problem is that finalSize only defines one dimension. The most obvious problem I see is that there is no variable named "w" above the fifth line in your expression. I'd be grateful for any help on either half of this! I'm struggling with the math on this one though and The Y positions of the title and names text layers are linked to the Y position of the orange bar and offset by a specific amount (20 pixels above for the titles, 25 pixels below for the names).īasically what I'm trying to come up with is the match to figure out, based on the height of the title text layer and the height of the names layer, how far from the center of the comp (960x540) I have to offset the orange bar to make everything center-aligned. The challenge is, the credits each have a title text layer, followed by an orange bar (shape layer), and then whatever names come after. What I'm using this for is to create an end credits sequence, and what I'm looking to do is center everything vertically and horizontally on the screen. Second half of the problem, and this is more about figuring out the math than anything else (so if there are any math whizzes out there I need your help!). I'm not sure why, but that's what's happening. 01 "ĪE is calling it a syntax error with an invalid or unexpected token. The error is coming in at this line: "p = (s – 100)*. H = targetLayer.sourceRectAtTime().height TargetLayer = thisComp.layer("Name Name Name Name") The first part is the easy part-I'm trying to get the actual size of a text layer, I found an old expression that purports to do it but it's erroring out. Got another one that I need help with (and this one's actually a two-parter).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |