mirror of
https://github.com/jorgevasquezp/AFX_yTools.git
synced 2026-08-16 23:36:30 +00:00
Changed the script for it to allow to probe scaled layers without breaking.
This commit is contained in:
@@ -87,7 +87,7 @@ function YColorProbe()
|
|||||||
radiusCTRL.name ='radius';
|
radiusCTRL.name ='radius';
|
||||||
myNull("Effects")("radius")('Slider').setValue(5);
|
myNull("Effects")("radius")('Slider').setValue(5);
|
||||||
colExp = 'myLayer = thisLayer("Effects")("sampledLayer")("Layer");\
|
colExp = 'myLayer = thisLayer("Effects")("sampledLayer")("Layer");\
|
||||||
p = thisLayer.toWorld(thisLayer.transform.anchorPoint);\
|
p = myLayer.fromWorld(thisLayer.toComp(thisLayer.transform.anchorPoint))\
|
||||||
r = thisLayer("Effects")("radius")("Slider");\
|
r = thisLayer("Effects")("radius")("Slider");\
|
||||||
myLayer.sampleImage(p, radius = [r, r], postEffect=true, t=time)';
|
myLayer.sampleImage(p, radius = [r, r], postEffect=true, t=time)';
|
||||||
myNull("Effects")('outColor')('Color').expression=colExp;
|
myNull("Effects")('outColor')('Color').expression=colExp;
|
||||||
|
|||||||
Reference in New Issue
Block a user