Forum Replies Created

  • Ok, thanks again for taking a look at it Dan.

  • Thanks for checking this out Dan. It’s applied to Time Remap. Unfortunately the comp that it’s referencing isn’t affected by the expression. Here’s a link to the file: https://dl.dropboxusercontent.com/u/1881942/Coke-TimeRemap-CC-v024.aep

    Usually I can trigger the error loop by attempting to duplicate the comp in the project window.

  • Sean Mcclintock

    April 26, 2013 at 6:17 pm in reply to: Triggering clips based on a black and white map

    Everything is working but I (seemingly randomly) keep getting an After Effects error: unsafe operation attempted ( 58 :: 0 ). Occurs in a loop which effectively crashes After Effects. Do I need to put in some sort of if statement to check for something?

    targetLayer =thisComp.layer("Controls").effect("B&W Map")("Layer")
    samplePoint = transform.position
    sampleRadius = [1,1];
    above = false;

    for (f = timeToFrames();
    f>= timeToFrames(inPoint); f--){
    t = framesToTime(f);
    sampledColor_8bpc = 255 * targetLayer.sampleImage(samplePoint, sampleRadius,true,t);
    R = Math.round(sampledColor_8bpc[0]);

    if (R>1 ){
    above = true; break;
    }
    }

    if (above) time - t else 0
    ;

  • Sean Mcclintock

    April 25, 2013 at 9:44 pm in reply to: Triggering clips based on a black and white map

    Yeah, works like a charm. Thanks again Dan.

    targetLayer =thisComp.layer("Controls").effect("B&W Map")("Layer")
    samplePoint = transform.position
    sampleRadius = [1,1];
    above = false;

    for (f = timeToFrames(inPoint);
    f<= timeToFrames(); f++){
    t = framesToTime(f);
    sampledColor_8bpc = 255 * targetLayer.sampleImage(samplePoint, sampleRadius,true,t);
    R = Math.round(sampledColor_8bpc[0]);

    if (R<1 ){ above = true; break;
    }
    }

    if (above) time - t else 0
    ;

  • Figured it out. Not sure exactly why but when I changed the R>1 to R<1 it started returning the right value.

  • Sean Mcclintock

    April 25, 2013 at 8:52 pm in reply to: Triggering clips based on a black and white map

    Here’s what I have but it I think I must be missing something.

    targetLayer =thisComp.layer("Controls").effect("B&W Map")("Layer")
    samplePoint =thisComp.layer("tt_footage_2").transform.position
    sampleRadius = [1,1];

    for (f = timeToFrames(inPoint);
    f&lt;= timeToFrames(); f++){
    t = framesToTime(f);
    sampledColor_8bpc = 255 * targetLayer.sampleImage(samplePoint, sampleRadius,true,t);
    R = Math.round(sampledColor_8bpc[0]);

    if (R>1 ){ above = true; break;
    }
    }

    f

  • Sean Mcclintock

    April 25, 2013 at 8:40 pm in reply to: Triggering clips based on a black and white map

    Thanks Dan. Really appreciate you taking the time to help out people like myself.

  • Sean Mcclintock

    April 25, 2013 at 8:13 pm in reply to: Advanced Graphic EQ – Delayed Peaks

    Thanks so much Dan!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy