Dataclay — Automating Digital Production
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Register
    • Login

    How to make templater images FIT TO COMP

    Scheduled Pinned Locked Moved
    Templates
    3
    4
    442
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CrealtoGbmHundefined
      CrealtoGbmH
      last edited by

      Hi, i have the issue that i need to make a few templates where the client uploads images. Most of the time, they should be in the right dimensions, but if not, the image needs to be fit to comp. So distorted to fit and not cropped or letterboxed. How do i get a templater image to do that, which is a regular tool in after effects to make anything fit to comp, but if i add that to the templater image, it still only crops or letterboxes it.

      Thanks for your help on how to get FIT TO COMP to work with Templater Images

      1 Reply Last reply Reply Quote 0
      • Jeffundefined
        Jeff
        last edited by

        @CrealtoGbmH

        Templater does not have a ‘stretch’ feature to distort images to the comp size automatically. However, this effect can be achieved by using an After Effects expression. Start by setting the Scale factor to 0% and the Fit Image Style option to Letterbox (No Cropping) in the Templater Effects panel. From there, you can apply this expression:

        resizeX = 100*thisComp.width/thisLayer.width;
        resizeY = 100*thisComp.height/thisLayer.height;
        [resizeX,resizeY]
        

        To the ‘Scale’ factor in the Transform area of the Layer Properties. This should ensure that any image brought into this Layer is stretched to fit the X and Y values of the Comp. Give that a shot and let us know if there’s anything else we can do to help.

        1 Reply Last reply Reply Quote 0
        • Ryanundefined
          Ryan
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • Jeffundefined
            Jeff
            last edited by

            @Ryan

            Absolutely. It’s what the “Fit Image Style” option in Templater Effect Panel does. There are two options: Fill (Cropped) and Letterbox (No Cropping). Fill will expand the image until it fills the entire frame, whereas Letterbox will keep the image constrained to the Comp proportions. If you have any additional questions about Templater, please just let us know.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post