Nathaniel Logan
Forum Replies Created
-
Nathaniel Logan
February 17, 2019 at 6:14 pm in reply to: Link Current value of parent position to Child layerEven miracles takes little time, but your Expressions works like charm ☺ I can’t thank you enough Dan, thank you sooo much ☺ 🙂
-
Nathaniel Logan
February 17, 2019 at 10:35 am in reply to: Link Current value of parent position to Child layerHi Dan thanks for quick response ☺
The above expression worked perfectly fine but what i want to achieve is, Attaching a screenshot for reference.
This is almost something similar to How the pickWhip works directly to the parent layer but the problem with pick Whip is need to move the playHead to the last keyframe and then pickWhick the layer so it will act as how i wanted, else the animation will start from its point.
is it possible to do it by script, or any other way to approach this either by using a pointControl or sliderControl to link the keyframes and connect to the shape layer. Let me know your thoughts.
Much appreciated,
Thanks in Advance 🙂 -
Well unlikely there is no other option to update the font style from an expression,
But you can control the scale,position /or rotation properties either by precomp the layers /or Connecting them via Picwhip to the main text /or Connecting the respective properties to the main text properties.
by this you can drive the child layer from main text.
If you’re still looking out for the same, maybe scripting would help.
https://aenhancers.com/viewtopic.php?p=9524
-
You cannot update the font style from an Expression,
But you can simply trick by creating multiple text layer(In your case its 3 text layer) and controlling the opacity of the text layer from a check box.
Here’s how you do that,
Create 3 text layer with the desired font style that you chose to go with, and then create a null layer(Control) and place the checkbox controller.
Then for all the text layers paste this code to the Opacity property :
L = thisComp.layer(“Control”)
if(L.effect(“Font_Arial“)(“Checkbox”)==1)
100 else 0;Do the same for all the text layers, and remember to update the Effect name for others.
Tip : Create a MasterText as a Guide Layer and connect the other child text layers to this layer, so that when you want to update the text you can simply edit the MasterText which will reflect the same to all text layers that are linked to this.
To do this paste this code to the Source Text Property :
thisComp.layer(“MainText“).text.sourceText
-
Ah,
finally, I found a script from Dan Ebberts, one of his old post, what exactly I’ve wanted.
Thanks Dan.
p = thisComp.layer("parent").transform.position;
delta = valueAtTime(0) - p.valueAtTime(0);
p + delta -
Thank you Tomas, that helped a lot 🙂
-
Hi Simon Francois,
Good day to you,
I usually use a free open source script for working with subtitles on After effects, here is the link to download the script: https://github.com/908video/DCSubToAE
All you need to do is Create a Comp and run the script panel & load the .srt file.
That’s it all set, a Text layer with Markers and Keyframes will be generated based on the .srt file.
Hope this helps.
-
Wonderful Dan, this script works like Charm, you’re the best of the best.
Thank you so much, ☺ ☺ ☺
-
Hi Dan the above snippet works like Charm thank you so much ☺
Also went through one of your script that triggers the Animation In/Out whichever the 3rd Keyframe is…
outKey = 3;
if (time > key(outKey-1).time){
m = marker;
n = 0;
if (m.numKeys > 0){
n = m.nearestKey(time).index;
if (m.key(n).time > time) n–;
}
t = n > 0 ? time – m.key(n).time : 0;
valueAtTime(key(outKey).time + t);
}else{
value;
}But is it possible to add two markers for a layer and keyframe the Position and Connect the first two keyframes to “In” Marker and next Two keyframes to “Out” Marker.
Much appreciated.
Thanks 🙂 -
Thank you so much Andrei.
Works like charm 🙂
