Dan Ebberts 936 AE Expressions Coins 82 After Effects Coins 1,794 COW Coins 115 Solve Coins @danebberts • Joined May 2001 • Active 13 hours ago Remove Connection Are you sure you want to remove from your connections? Timeline Profile Connections 33 Photos Forums Points Leader Badges Discussions Replies Favorites Discussions Replies Favorites Forum Replies Created Page 138 of 1081 ← 1 … 137 138 139 … 1,081 → Dan Ebberts June 26, 2020 at 12:05 am in reply to: Has random changed? I think that’s how it’s always been. It seems like a number of things get factored into the random seed. I would expect comps duplicated in the project panel to give different random results, but not duplicated precomp layers. Dan Dan Ebberts June 23, 2020 at 7:06 am in reply to: Adding function to an expression I’m not sure if this is what your looking for, but it might be like this: myEase = function (t, b, c, d) { t /= d/2; if (t < 1) return c/2 * Math.pow( 2, 10 * (t - 1) ) + b; t--; return c/2 * ( -Math.pow( 2, -10 * t) + 2 ) + b; }; dur = Math.round(effect("Slider Control")("Slider")); if (time < (inPoint+outPoint)/2) myEase(time-inPoint,0,100,dur) else myEase(time-(outPoint-dur),100,-100,dur) Dan Dan Ebberts June 21, 2020 at 5:32 pm in reply to: Generate text from markers Like this maybe: rate = 20; m = thisComp.layer("Null 1").marker; txt = ""; if (m.numKeys > 0){ n = m.nearestKey(time).index; if (time < m.key(n).time) n--; for (i = 1; i <= n-1; i++){ txt += m.key(i).comment + " "; } if (n > 0){ curWord = m.key(n).comment; if (n < m.numKeys){ curRate = Math.max(rate,curWord.length/(m.key(n+1).time - m.key(n).time)); }else{ curRate = rate; } t = time - m.key(n).time; x = curRate*t; txt += curWord.substr(0,x); } } txt Dan Dan Ebberts June 21, 2020 at 4:30 pm in reply to: Generate text from markers Try this: m = thisComp.layer("Null 1").marker; txt = ""; if (m.numKeys > 0){ n = m.nearestKey(time).index; if (time < m.key(n).time) n--; for (i = 1; i <= n; i++){ txt += m.key(i).comment + " "; } } txt Dan Dan Ebberts June 18, 2020 at 9:39 pm in reply to: Expression to count up every X amount of frames I’m not clear on what you’re doing, but something like this might fit in there somewhere: Math.floor(effect(“Slider Control”)(“Slider”)/3)*3 Dan Dan Ebberts June 18, 2020 at 9:33 pm in reply to: Mapping JSON data to colour ramp in AE Just as a test, you could play around with this, to see if it’s close to what you want: s = effect(“Slider Control”)(“Slider”); c1 = hexToRgb(“FFFFFFFF”); c2 = hexToRgb(“000081FF”); linear(s,0,100,c1,c2) Dan Dan Ebberts June 17, 2020 at 5:26 pm in reply to: AE unable to read data from an external JSON file using .sourceData I can get your expression to work with your data file, but I have to change the names of data fields so that they start with a letter. For example: “01_01_2020”: 0, doesn’t work, but “X01_01_2020”: 0, does. Dan Dan Ebberts June 16, 2020 at 6:35 pm in reply to: Building a scrabble expression No idea really, but possibly something like this: vals = [1,3,3,2,1,4,2,4,1,8,5,1,3,1,1,3,10,1,1,1,3,4,4,8,4,10]; idx = value[0].toUpperCase().charCodeAt(0) – 65; value[0] + vals[idx] Dan Dan Ebberts June 16, 2020 at 6:24 pm in reply to: rtl text expressions Try changing this line: retard = textIndex*thisComp.frameDuration*1; to this: retard = (textTotal – textIndex + 1)*thisComp.frameDuration; Dan Dan Ebberts June 15, 2020 at 10:24 pm in reply to: Control ‘Y’ position of 3D Layer using Slider Control I don’t think this is exactly what you asked for, but it’s probably close: yMax = 150; s = thisComp.layer(“Controls”).effect(“Slider Control”)(“Slider”); yOffset = linear(s,0,100,0,yMax); value + [0,yOffset,0] The slider, or whatever you link to will give a y offset range of zero to whatever you set yMax to as the slider goes from zero to 100;. Dan Page 138 of 1081 ← 1 … 137 138 139 … 1,081 →