Forum Replies Created
-
REGEX! Right on! This is a great look at how regex can be used in expressions!
Trent
-
Trent Armstrong
February 12, 2021 at 2:42 pm in reply to: Make Dropdown Menu index change based on Layer parameterI think the only way to achieve exactly what you’re looking for is with scripting inside AE.
If you’re trying to do this with a MoGrt, you can either set it with ALL the options but in different areas and maybe checkboxes. OR you could create separate MoGrts for each of your scenarios: Broadcast Master, Archive Master, Textless Split, etc
-
Trent Armstrong
February 10, 2021 at 4:31 pm in reply to: Expression behaving differently on two PCsMaybe make sure the AE Preferences are the same across the two. There is a Javascript setting that can cause expressions to be read differently.
https://help.pixflow.net/portal/en/kb/articles/after-effect-change-expression-engin
-
Trent Armstrong
February 9, 2021 at 3:04 pm in reply to: Move object from one end of a SourceRectAtTime rectangle to the other over timeYou bet! Have fun with those expressions!
-
Trent Armstrong
February 9, 2021 at 2:00 pm in reply to: Move object from one end of a SourceRectAtTime rectangle to the other over timeThere is something wrong with the formatting that is happening with the blog post. It’s a bit of a hassle, but try typing it instead of copy/paste. I had trouble with the quotes on the first line and then some character on the startPos line. Not sure what that’s about. 😐
-
Trent Armstrong
February 9, 2021 at 1:44 pm in reply to: Move object from one end of a SourceRectAtTime rectangle to the other over timeKieran,
You can also do a thing where you read the time of keyframes into the ease() expression start and end range. That allows you to change the length of the move by adjusting the position and distance between those keyframes.
-
Trent Armstrong
February 9, 2021 at 1:32 pm in reply to: Move object from one end of a SourceRectAtTime rectangle to the other over timeKieran! This is awesome! I love dynamic setups like this that can change based on other elements in the comp.
You will probably want to use linear() or ease() to accomplish this. It would look something like this:
L = thisComp.layer(“Shape Layer 1”); //Pickwhip the layer you are referencing
w = L.sourceRectAtTime().width * .5;
startPos = L.toComp(L.anchorPoint) – [w, 0];
endPos = L.toComp(L.anchorPoint) + [w, 0]
endFrame = framesToTime(25);
ease(time, 0, endFrame, startPos, endPos) // For a more harsh animation you could use linear() instead
-
I’m not sure if this is exactly what you’re looking for, but you can put a Text layer at the bottom of your layer stack and put this expression in the sourceText field:
list = [];
times = [];
for (i=1; i<=thisComp.numLayers – 1; i++) {
list.push(“\r” + thisComp.layer(i).name + ” — ” + timeToTimecode(thisComp.layer(i).inPoint))
}
list;
If you need to pull that list out, you can select the sourceText and run Convert Animation to Keyframes. That will bake the text into the layer and make it editable.
-
Trent Armstrong
February 2, 2021 at 9:19 pm in reply to: loopOut(“continue”) not interpreting correctly 2d valuesI am curious if separating the x and y would solve the issue.
-
Hi!
The expression is adding a “+” to the end of the number and therefore putting the comma in the wrong spot.
Try this line instead:
s = ease (t, 0, dur, beginCount, endCount).toFixed(numDecimals);
And let me know if that’s just not what you’re looking for.
Trent