1 Reply Latest reply on Dec 18, 2008 10:27 PM by Mylenium

    Crop to video layer/

      What I'm doing is keying footage in After Effects and then creating flash files for implementation in a SWF. I want to see if there is a way to crop the comp to just pixels around the action by our actors. Basically is there an auto sensing plug in or script to find the action of the keyed footage and then apply a sizing on the comp.
        • 1. Re: Crop to video layer/
          Mylenium Most Valuable Participant
          Not really. However, you can easily use CS3/CS4's sampleImage() expression for this. Check out once more one of Dan Ebbert's examples:


          Once you have the min and max values, you can easily derive an absolute dimension by subtracting min from max. In your case you would want to refer the sampleImage() stuff to an adjustment layer, so it samples the entire comp width and height. Just apply the expression to a text layer to be able to read the values...