Mastering After Effects: Creating Fully Responsive Templates

Поділитися
Вставка
  • Опубліковано 3 лис 2024

КОМЕНТАРІ • 4

  • @keeprollingKenni
    @keeprollingKenni 4 місяці тому

    Thanks for this! I'm working on a vertical composition, trying to make the image fill the space. When fed landscape-orientation images in a vertical comp, it doesn't seem to work.
    @2:54 You are showing the script here to make it work, but it seems like both scripts are exactly the same. If I switch out the imgWidth & imgHeight with one another in the vertical comp script, will that work?

    • @keeprollingKenni
      @keeprollingKenni 4 місяці тому

      LOL I answered my own question! I tried this solution and it works! Below is the script for the vertical comps:
      Vertical Composition:
      ------------
      img = thisLayer;
      imgWidth = img.width;
      imgHeight = img.height;
      if (imgHeight > 2*imgWidth) {100}
      else if (imgHeight 2*imgHeight) {100}
      else if (imgWidth

    • @PlainlyVideos
      @PlainlyVideos  4 місяці тому +1

      @@keeprollingKenni Good catch, glad you got it solved :)

  • @avizmotiongrafix
    @avizmotiongrafix 7 місяців тому +1

    Awesome.