Copy link to clipboard
I'm following a yt tutorial that's not for mac on a mac and I keep getting this simple error
error : error : argument 1 to sampleImage() must be 2 numbers
this is my expression:
p = thisComp.layer("NULL").transform.positions = thisLayera = s.sampleImage(p, [.1,.1])linear(a,0,1,0,100)
I'm trying to get the opacity of an image to go from 0 to 100 when the mouse hovers
Any help will be greatly appreciated so that I can learn with you guys!
i'm not sure but it seems you need the x and y coordinates for sampleimage to work.
Try removing the  (points to the x-coordinate). Maybe it helps.
p = thisComp.layer("NULL").transform.position;
Akira, you are the best!! I can't believe it was that simple jajaja.