How to Automatically Get the Size of Many Layers

Поделиться
HTML-код
  • Опубликовано: 1 фев 2025

Комментарии • 52

  • @aqueminteressarpossa3445
    @aqueminteressarpossa3445 4 года назад +1

    Mr Sergei Prokhnevskiy, I'll tell you something... you are a GENIUS! Best brazilian regards

    • @ukramedia
      @ukramedia  4 года назад

      Thank you for your kind words!

  • @peterheynen
    @peterheynen 4 года назад +1

    Super helpful, thanks a lot!
    I wish you and your family happy easter and stay healthy!

  • @33SNOW33
    @33SNOW33 4 года назад +2

    You're the man Sergei. Thanks for another great tutorial!

    • @ukramedia
      @ukramedia  4 года назад +1

      Thank YOU, Braden!

  • @wshultz55
    @wshultz55 4 года назад +1

    Don't worry about over explaining! I needed it.

    • @ukramedia
      @ukramedia  4 года назад

      That's great to hear, Warren!

  • @sergedruz7261
    @sergedruz7261 4 года назад +1

    Love your tutorials, and how you explain things. Thank you, Sergei.

  • @W6QLE
    @W6QLE 4 года назад +1

    Easy to understand, as always. Thanks!

  • @evaristphi
    @evaristphi 4 года назад +1

    everyday we get something new
    thank you Sir Sergei

  • @MarkWarnerTV
    @MarkWarnerTV 4 года назад +1

    Many thanks, really clear to understand! I have to use CC2018 on a project. Do you have alternative way to script the spread operator? it only works with the newer javascript engine.

    • @MarkWarnerTV
      @MarkWarnerTV 4 года назад +2

      PS Found it, add this after the "widthList.push...." line and [x] right at the bottom of the expression:
      x = Math.max.apply(Math, widthList);

    • @ukramedia
      @ukramedia  4 года назад

      @@MarkWarnerTV I was about to answer it and it looks like you found apply. Thanks for watching the tutorial, Mark!

  • @vyskocity
    @vyskocity 4 года назад +1

    I really enjoy how easy your tuts are to follow. I don't think you can over-explain something (in my opinion) because it allows the concept to be cemented in my brain over time ha...
    I am curious...can you apply something similar by linking the anchor points of a shape layer (ie: circle) so that when one circle scales up or down, the other shape layer(s) would also scale up/down?
    Cheers!

    • @ukramedia
      @ukramedia  4 года назад

      I love your feedback, Thomas! You can do all of that and more with expressions. That's why they are awesome.

  • @jonatanmagrao3050
    @jonatanmagrao3050 4 года назад +1

    amazing tut, I really learn a lot with your videos, hope someday be like you hehe. keep the wonderful job ^^ from brazil

    • @ukramedia
      @ukramedia  4 года назад

      Thank you for your kind words, Jonatan!

  • @Zoro_-rb1oy
    @Zoro_-rb1oy 4 года назад +1

    thanks for this wonderful tutorial..
    could you please create a tutorial about responsive composition resolution on the other element inside that....
    thank you.......

  • @iGuuude
    @iGuuude 4 года назад +2

    So could I also do this with the height, but instead of choosing the biggest number, add all of the values in the array (+some value for margins) to get a box as tall as all layers combined?

    • @ukramedia
      @ukramedia  4 года назад

      Yes, you can do that also. Thanks for watching the tutorial!

    • @lucasafonsotonezer9121
      @lucasafonsotonezer9121 2 года назад +1

      @@ukramedia how to add all the values in the array?

    • @RAM_Tv
      @RAM_Tv 2 года назад

      @@lucasafonsotonezer9121 yes please, how to do it?

  • @colinthomas3106
    @colinthomas3106 2 года назад

    This saved my bacon today Sergei, thank you!

  • @crazyloco77
    @crazyloco77 4 года назад

    Hi Sergei, is there a workaround to use a custom bezier shape instead of a parametric one with size related expressions?

  • @rakmichal
    @rakmichal 2 года назад

    Thanks!!!!

  • @loookclick938
    @loookclick938 4 года назад +3

    What an absolute joy to learn. Love it! I would try to implement this in my next project.

    • @ukramedia
      @ukramedia  4 года назад

      Thank you for your kind words, GBC cuts!

  • @TolgaOzisik
    @TolgaOzisik 4 года назад

    golden!

  • @AjeetSinghMotion
    @AjeetSinghMotion 4 года назад +1

    please make tutorial on Adaptive Screen Resolution/Composion..
    please...

    • @ukramedia
      @ukramedia  4 года назад

      Thanks for the tutorial request, Ajeet! I'll put it on my list.

  • @arturmartirosyan6286
    @arturmartirosyan6286 4 года назад +1

    Great Tutorial! You could also use just a simple comparison instead of pushing all variables in an array.
    var width = 0;
    if(layerPath.name.match(keyword) && width < layerWidth)
    width = layerWidth;
    }

    • @ukramedia
      @ukramedia  4 года назад

      Cool. I'll give it a try. Thanks, Arthur!

    • @arturmartirosyan6286
      @arturmartirosyan6286 4 года назад +1

      @@ukramedia Thank you too! Your tutorials are excellent and i've learnd a lot from you! Keep it up! :)

  • @RAM_Tv
    @RAM_Tv 2 года назад

    How can I make the shape grow from the left side and not from the center?

    • @Condemic
      @Condemic 11 месяцев назад +1

      Any chance you ever found the answer to this? Looking for the same but can't figure it out myself.

    • @RAM_Tv
      @RAM_Tv 11 месяцев назад

      Yes, I found it. And there's more than one way to do it@@Condemic

    • @Condemic
      @Condemic 11 месяцев назад

      How did you do it? 😁

    • @Condemic
      @Condemic 11 месяцев назад

      Fixed it by adding to the Rectangle Path position. Not sure if that's the best way though.

  • @NTProductions
    @NTProductions 4 года назад +2

    Is it just me or is the audio off?

    • @ukramedia
      @ukramedia  4 года назад +1

      Nah... I just talk too fast and my computer can't keep up with me. I'm kidding... I noticed that as well, Nate.

    • @NTProductions
      @NTProductions 4 года назад +1

      @@ukramedia It seems like it fixes itself as the video progresses!

    • @ukramedia
      @ukramedia  4 года назад

      @@NTProductions OBS has been doing that to me lately. What do you use to record your tutorials?

    • @NTProductions
      @NTProductions 4 года назад +1

      @@ukramedia OBS haha. But I record my camera separately and sync them in editing

    • @ukramedia
      @ukramedia  4 года назад

      @@NTProductions Gotcha. It's a great tool I'm a bit lazy with that and I record everything on one screen.

  • @_Anonymous_Participant
    @_Anonymous_Participant 4 года назад +1

    RUclips Really need to increase the speed play to x5. I know this is absolutely perfect tutorial for beginners. But I can't watch and learn every single basics once again.

    • @ukramedia
      @ukramedia  4 года назад +1

      I know what you mean and I hear you. At the same time, I do want people of all levels to get it and not just give them the code. I always struggle with this, should I over-explain or not? If you have any advice, I'm all ears. Thanks!

    • @_Anonymous_Participant
      @_Anonymous_Participant 4 года назад +1

      Thank you so much for the tutorial. Before I make any more sentence let me make it clear. I don't meant to say your video boring or it's weird to watch. In fact I've started learning lot of things because of your style of this explanations. I'm not a native English speaker. So I might say something it feel different somewhat different than what I tried to convey. I just mean to sound funny in my comment.
      You should over explain it. because I were a beginner once until I start watching your videos...
      Thank you for you great tutorials..... :)

    • @CarlsSimGuides
      @CarlsSimGuides 4 года назад

      @@ukramedia Something that annoys me with tutorials is that the person giving it starts with how to open a file or create a project. That's my number one pet peeve and I'm glad you don't do that in every tutorial. There's a time and place for that. You know no experienced user will be looking at such basic stuff anyway.
      In this video, you kind of have to explain all this stuff if you are not only going to show them the expression but rather teach them to actually use it. I really enjoy your tutorials and it's been very helpful to me in learning how to take advantage of what little I know about coding inside After Effects. Thanks a lot for that.
      Anyway, I definitely see where you're coming from with tutorials and it being a delicate balance to not upset more experienced users. I just wanted to agree with Magical Mystery that you are doing a great job.