Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions sampleImage() and “unsafe operation attempted”

  • sampleImage() and “unsafe operation attempted”

    Posted by Pierre-alexis Tremblay on July 9, 2009 at 5:04 pm

    I keep getting an “unsafe operation attempted” error when using sampleImage() function, any idea on how to fix this ?
    Here’s the code I picked from one of the posts here and adapted a little:

    sampleSize = [thisComp.width/2,thisComp.height/2];
    target = thisComp.layer(“CLIP”);
    samplePos = [target.width,target.height]/2;
    rgb = target.sampleImage(samplePos, sampleSize, true, valueAtTime(2));
    hsl = rgbToHsl(rgb);
    hsl[2]*100

    P.A.T.

    Dan Ebberts replied 16 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies

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