Quantcast
Channel: Adobe Community : All Content - After Effects
Viewing all articles
Browse latest Browse all 49102

Layer not respecting opacity setting

$
0
0

I have a list of about 100 layers in a composition. I use this script to create random fading for those layers.

segMin = .3; //minimum segment duration

segMax = .7; //maximum segment duration

minVal = 0;

maxVal = 100;

 

 

seedRandom(index,true);

segDur = random(segMin, segMax);

seed = Math.floor(time/segDur);

segStart = seed*segDur;

seedRandom(seed,true);

startVal =  random(minVal,maxVal);

seedRandom(seed+1,true);

endVal = random(minVal,maxVal);

ease(time,segStart,segStart + segDur, startVal, endVal);

It used to work but I was away from the project for a while and opened the file to make changes for a client. Now they all the layers pulse in unison even though if I expand the layers opacity setting and scroll through the time-line, the values do fluctuate in the opacity field as I would expect. Just the actual render shows the flashing in sync.

This expression statement worked in november of last year and now it doesn't. Did something change? I know AE updated the javascript engine but it was supposed to be compatible with the old engine. Also, I the opacity numbers do what I expect just the render/preview does not.


Viewing all articles
Browse latest Browse all 49102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>