How to Use Expressions to Access & Edit Text Properties in After Effects

Поділитися
Вставка
  • Опубліковано 15 жов 2024
  • /// About:
    In this video, I will show you how to use Expressions to Access & Edit Text Properties in After Effects.
    /// Links from the Video:
    Ukrameida Online Community: www.ukramedia....
    Smart Text Tool: ukramedia.com/...
    Smart Bundle: • These Tools DESTROYED ...
    /// Let's Connect:
    Facebook: / ukramedia
    Sergei's Facebook Page: / sergeiprokhn. .
    Twitter: / ukramedia
    Instagram: / ukramedia
    Pinterest: / ukramedia
    Linkedin: / ukra. .
    UA-cam: / ukramedia
    Ukramedia Online Community: www.ukramedia....
    /// Mailing Address:
    P.O. Box 621
    Huntersville, NC 28070
    #AfterEffects #AfterEffectsScripts #MotionGraphics

КОМЕНТАРІ • 93

  • @lordihante408
    @lordihante408 4 місяці тому +3

    Dear Ukramedia,
    I am working with AE for 10 years now and your work comes up on a regular basis when I am looking for specific solutions.
    Thank you very much,
    Greetings from Paris

  • @smartsegment4685
    @smartsegment4685 3 роки тому +2

    One of the best bundle I bought ever, its for smart work.

    • @ukramedia
      @ukramedia  3 роки тому

      That's AWESOME! Thank you for your support, SmartSegment!

  • @alecmueller2297
    @alecmueller2297 Рік тому +4

    This is a great video. It is now several years old and these expressions initially did not work for me and I got errors where it did not recognize the functions. If this happens, make sure that in your Project Settings, you have the expressions tab set to Java Script. By Default AE 2023 had this setting at Legacy Extended Script. When I set AE to Java Script, everything in this video works great.

    • @wonderfulnewssv
      @wonderfulnewssv Рік тому

      yeah, it kinda sucks tutorial makers don't mention which expressions engine is used for their expressions to work.

  • @anatoliykulakov1895
    @anatoliykulakov1895 2 роки тому

    Стисло, доступно, пізнавально! Завдяки цьому прекрасному уроку, я це освоїв!!! Дякую!

  • @elsonfernand
    @elsonfernand 3 роки тому +4

    Duuuuuude! Did you just teach us what your product does? Is this serious? God bless you! Stay safe and thank you very much! Greetings from Brazil. 🇧🇷

    • @ukramedia
      @ukramedia  3 роки тому +2

      I did! But... my tool gets you there faster. 😉

    • @elsonfernand
      @elsonfernand 3 роки тому +3

      @@ukramedia, for sure but... just the fact that you teach us something 100% free and that is something your product does surprises me with the greatness of your generosity. Many would not do what you did in this video, that's what I meant. 🙈

    • @riigel
      @riigel 3 роки тому +4

      Sergei is a gift for our community.

  • @gugumach
    @gugumach 3 роки тому +3

    Fantastic video Sergei. The way you present and explain to us it is very simple and practical. Really enjoy watching your videos.

    • @ukramedia
      @ukramedia  3 роки тому

      Thank you for your kind words, Gustavo! I'm glad you found this tutorial useful.

  • @EnglishWithEnes
    @EnglishWithEnes 6 місяців тому +1

    This is some real masterclass here!

  • @1234561ram
    @1234561ram 3 роки тому +1

    "WOW" I really enjoyed the way that explained about text style properties

    • @ukramedia
      @ukramedia  3 роки тому

      I'm glad you found this useful.

  • @CatalinGulan
    @CatalinGulan 3 роки тому +1

    Long time no see Sergei..🙈! You remained, and so your channel, probably one of the best one related to Ae Expressions. Thank you very mych for sharing!❤ Hopefully you and your family, are all safely and well!

    • @ukramedia
      @ukramedia  3 роки тому

      I'm happy to be back. Thank you for your kind words!

  • @Centuriez
    @Centuriez 2 роки тому

    This just saved me a TON of time
    The Alt+Right Click thing.
    Thank you!!

  • @tonybp
    @tonybp 3 роки тому +2

    There are many AE channels, yours is the one where I learn the most. And it's practical stuff you actually end up using. Thanks.

    • @ukramedia
      @ukramedia  3 роки тому +1

      Thank you for your very kind words, Tony BP! I appreciate it a lot!

    • @IllusionSector
      @IllusionSector 8 місяців тому

      ​@@ukramedia
      Hi, Sergey. Thanks for the tute. Do you happen to know if it's possible to selectively format parts of the text using a sourceText expression (i.e. without relying on ranged text animators)? Suppose you want the word _'brown'_ in _'A quick _*_brown_*_ fox..._ to have a different font weight, size, or color than the rest of the text. Do these style setting methods support that?
      Thanks!

  • @fliptopjim
    @fliptopjim Рік тому

    THANK YOU!! Although I was here for the scripting code (in the second half) I so appreciated your thoroughness I will be buying the script when I get the funds as it is a joy. Thank you so much for both the script and the tutorial/knowledge.

  • @ManeNersesyan
    @ManeNersesyan 10 місяців тому

    Very Helpful video, Thank you a lot.
    I'm suffering with one task, is there any way to animate between font styles like a slider that will change from Light to Bold in the same font?

  • @901D
    @901D 3 роки тому +3

    OMG This is exactly what i want to know!
    I do lot of subtitle animation it helps a lot, thank you

    • @ukramedia
      @ukramedia  3 роки тому +1

      Always happy to help! Thanks for watching the video!

  • @sergedruz7261
    @sergedruz7261 3 роки тому +2

    Sergei, thank you very much for explaining things. This text expressions was very confusing for me, especially that after /style/ you can write as many properties as you need divided by period. It could save me some time if I knew this before))

    • @ukramedia
      @ukramedia  3 роки тому

      I'm glad you found this useful, Serge! Thanks for your comment!

  • @DonTerrell
    @DonTerrell 3 роки тому

    Been loving the quick tip tutorials you've been sharing!!

  • @REX90WO
    @REX90WO 3 роки тому +1

    Thanks for your tutorials. I have a question. How to do everything the same, just not for the whole text, but for specific letters, words, sentences, etc.

  • @MxTheArtOfMx
    @MxTheArtOfMx 2 роки тому

    Thank you for posting these videos on type within After Effects. Your movies have great detail along with really great descriptions.

  • @josephb1884
    @josephb1884 3 роки тому

    Thank you for helping me understand another aspect of writing expressions that I did not know before.

  • @LightspeedTutorials
    @LightspeedTutorials Рік тому +8

    1:24 Plugin method
    Manual method 4:05 | .style. 4:42 | HELPER 4:47 | setText(value) 5:00 |

  • @colorless3560
    @colorless3560 3 роки тому +1

    i was looking for this tutorial to use on essential graphics last year and i cant find any. thank you!!!
    also I was waiting for the font style part but you didn't discuss it. anyway this is a good start for me. thank you 👌

    • @ukramedia
      @ukramedia  3 роки тому

      I'm glad you found it useful, Dale! Thanks for giving it a go.

  • @Ryoogah1
    @Ryoogah1 Рік тому

    Huge help man, I was wanting to keyframe the distance between letters

  • @seanjenkinson8887
    @seanjenkinson8887 2 роки тому +9

    Great to know. Sometimes I might want to set individual characters to different settings like, for example, "£50' where the "£' is set to a smaller font size than the number... or a person's name where the first name is set to bold or black and the surname is in a thin or light weight. Can this be done in expressions? I've been trying to figure it out but not having much luck.

    • @christiaannel5504
      @christiaannel5504 Рік тому +1

      I would also like to know how to do this. Sergei please help

  • @riigel
    @riigel 3 роки тому +1

    Hey Sergei! As always, thanks for this!
    I have a question tho,
    Can i access the paragraph box of a text layer through expression, so i can resize it based on a shape layer?? i hope my question is clear.

    • @ukramedia
      @ukramedia  3 роки тому

      That's a good question, Rigel. You can do it with a script... however, I don't think you can do that with expressions.

  • @ahmadluayeleiwy3411
    @ahmadluayeleiwy3411 Рік тому +4

    What if I want a dropdown menu to change the case and the font every time? I can't make it do both. It's alwas either font or case.

  • @CaptainSnackbar
    @CaptainSnackbar 2 роки тому +2

    i think you need to change your expression engine from Leacy ExtendedScript to JavaScript for that to work

  • @bondodesign
    @bondodesign 3 роки тому

    Another great tip video from Ukramedia :-)

    • @ukramedia
      @ukramedia  3 роки тому

      Glad it was helpful, Claes!

  • @mbeltowska
    @mbeltowska 3 роки тому +1

    Thanks for the tutorial, I've been finding your videos super helpful! I'm stuck on one thing - I want to give the editor control to downsize the font size if the source text is too long, but the text keeps scaling from the top left corner. How can I change this so it scales from the bottom left corner?
    Thanks again!

  • @dendei123
    @dendei123 2 роки тому +1

    Is there any way to differentiate the two lines with different colours? or for example in the setText ("This Text") is RED and then another setText ("This Text 2") is Green? If this makes any sense?

  • @AndrewCortesi
    @AndrewCortesi 3 роки тому +1

    This doesn't work unless you have Javascript enabled in your Project Settings. Is there any way to accomplish this with Legacy ExtendScript?

  • @DavidBichoHasBeard
    @DavidBichoHasBeard 11 місяців тому +1

    Great! And then - next level. Change paragraph alignment.

  • @tenniset
    @tenniset 3 роки тому +2

    Once I tried to use style script and it seemed I need to change project settings from legacy extendscript to javascript. But I found some expressions I wrote under legacy extendscript became useless. I guess there are some compatibility issues between these two. Maybe some expressions or wording. I don't know. Hope I will know someday.

  • @kroneck.design
    @kroneck.design Рік тому

    Super helpful, thanks a lot! :) Greetings

  • @lenonfernandes8584
    @lenonfernandes8584 5 місяців тому

    I have 2 texts layers, I apply the smart Text on the first one, but where should I go to link the second text to the first one where I applied the smart text? In the second one, I want to get everything but the color fill from the first one

  • @sicfxmusic
    @sicfxmusic 3 роки тому +1

    Epic!! Thanks a lot 🙏👌✔

  • @theadongo
    @theadongo 3 роки тому +1

    My use of expressions in AE is improving every day

    • @ukramedia
      @ukramedia  3 роки тому

      That's great to hear! Expressions are very powerful.

  • @JL-vq4se
    @JL-vq4se 8 місяців тому

    does it work also across composition?

  • @DissertazioniVideolu
    @DissertazioniVideolu 2 роки тому

    What about Kerning, I linked multiple texts in different comps with the same text, I noticed that pick whipping the text source works but it doesn't transfer the kerning in between two letters I had to separate manually. How would you transfer the kerning? I noticed is not in the text properties

  • @tanakachiriga5291
    @tanakachiriga5291 Рік тому

    This is great but how do you get just one style property?

  • @bondodesign
    @bondodesign 3 роки тому

    Question: I have your plugin, but can I share my project-file without plugin, and still have the scripting on the layers? Or do they also need the plugin?

    • @ukramedia
      @ukramedia  3 роки тому +1

      That's the beautiful thing about scripts... once you run the script and apply it to a layer, you don't have to have it to edit it or to use that effect. It uses native After Effects tools that are always installed in After Effects. Does that makes sense?

  • @hirenprabtani8796
    @hirenprabtani8796 Рік тому

    Great

  • @aaalllfff
    @aaalllfff 3 роки тому

    I am trying to change the text from another layer with "thisComp.layer(3).text.sourceText.style.setText("hello");" but nothing happens! Can anyone explain why? Thanks!

  • @HimanshuSharma-sg4ql
    @HimanshuSharma-sg4ql 7 місяців тому

    thanks alot

  • @UNVIart11
    @UNVIart11 3 роки тому

    Hi. How set the "Text alignment"?

  • @jacobusolivier6863
    @jacobusolivier6863 2 роки тому

    Thank You for the tutorial! However, when I use the expression, it gives me an error saying "property or method named 'style' in Class 'Text Property' is missing or does not exist."

    • @TorgeirHolm
      @TorgeirHolm 2 роки тому

      Too me a while as well, but you have to set expressions to use Javascript instead of legacy. Go to Project settings > expressions > Javascript

  • @olivia-pp3mi
    @olivia-pp3mi 3 роки тому

    whenever i open up my graphs it shows “no selected properties have expressions” and it’s really annoying. how can i get rid of it?

  • @polystormstudio
    @polystormstudio 3 роки тому +1

    I have another error (I commented in your latest video as well). I'm using "text.sourceText.style.setText("Ukramedia.com")". I followed your steps exactly. The error is:
    Error at line 1 in property 'text' of layer 1 ('text') in comp 'Comp 2'. property or method named 'style' in Class 'TextProperty' is missing or does not exist. It may have been renamed, moved, deleted, or the name may have been mistype, property or method named 'style' in Class 'TextProperty' is missing or does not exist. It may have been renamed ... etc

    • @Audiopuncture_
      @Audiopuncture_ 3 роки тому +4

      had the same problem, under "project settings" you have to change the expressions engine from legacy extendscript to javascript

    • @polystormstudio
      @polystormstudio 3 роки тому +1

      @@Audiopuncture_ OMG thanks!

    • @themolx
      @themolx 2 роки тому +1

      @@Audiopuncture_ you just saved me man!! thanks!!!

    • @jouriverhoeven
      @jouriverhoeven 2 роки тому +1

      @@Audiopuncture_ Thanks for that!

  • @massaxpowa
    @massaxpowa Рік тому

    Hi Sergei, it seems that the leading option doesn't work with AE2023 while working fine in 2021 ;o)

  • @romerlaidsaar2994
    @romerlaidsaar2994 3 місяці тому

    Really useful tutorial. Thanks! I have been looking for a solution to change text properties of selected words. Let's say I control value with slider and add unit of measurement at the end and I need this to be in different style - effect("Slider Control")("Slider").value.toFixed(1)+("m") - how to get this?

  • @jameswoollacott3108
    @jameswoollacott3108 2 роки тому

    This is great, but does anyone know how to change the style midway through?
    So if I were to write an expression like:
    "text one" + (different colour) "Text two"
    I'm looking at creating a MoGrt with two bits of changeable information in one text layer, but they are supposed to be two different colours. I know how to write the whole thing but cannot find a function to change the text colour at a certain point onwards.

    • @Lyn3z
      @Lyn3z 2 роки тому

      Do you have a solution for that?

    • @jameswoollacott2801
      @jameswoollacott2801 Рік тому

      @@Lyn3z I did find one, I can't quite remember how I did it, but I believe I put an expression on the range selector start value to be however long the first text input was, then set the end of the range selector to something very high

  • @vjhighlander
    @vjhighlander 2 роки тому

    Unfortunately, there is no "Text" in Expression language menu... (((

  • @ashishcchauhan
    @ashishcchauhan Рік тому

    how to access the Superscript?

  • @AndrewMarston
    @AndrewMarston 3 роки тому +3

    I've wondered why Adobe doesn't allow the font size and other text properties to be key framed natively. Smart Text wins.

    • @ukramedia
      @ukramedia  3 роки тому +1

      Same here! Thanks, Andrew!

  • @andrewabuya9315
    @andrewabuya9315 Рік тому

  • @gianlucafabbricino8281
    @gianlucafabbricino8281 3 роки тому

    When I try to control "FontSize" through if statement, the slider doesn't work :(

    • @trscheit
      @trscheit 3 роки тому +1

      change the expression language to javascript in project settings.

    • @michaelohare390
      @michaelohare390 2 роки тому

      @@trscheit , good question. and thank you Sergi for the reply. it would have been nice to have at the start of the tutorial, nevertheless, lesson learned. Cheers

  • @devmotions6651
    @devmotions6651 3 роки тому +2

    I love 💕 it but help me

    • @ukramedia
      @ukramedia  3 роки тому +1

      How can I help you?

    • @devmotions6651
      @devmotions6651 3 роки тому +2

      @@ukramedia sir I need after effect basics tutorial

    • @devmotions6651
      @devmotions6651 3 роки тому +2

      @@ukramedia thank you

    • @ukramedia
      @ukramedia  3 роки тому +1

      @@devmotions6651 I'll see what I can do.

  • @AndrewOlivares
    @AndrewOlivares 3 роки тому

    Mind blowing! I tried to make a dropdown menu work with an array consisting of different fonts but i wasn't able to make it work with the .SetFont
    . Any ideas on how to be able to switch between different fonts and not be tied down to the one set in that variable?