Eric Guiliani
Forum Replies Created
-
Thanks.
The video I watched actually suggested putting the disk cache on another drive, but i’m assuming it would only be worth it if the drive was a fast SSD.
-
Ok, even if the OS and everything else is on it? Also, would it be better for the footage/assets be on the external drive?
-
Thanks man. Thats what I ended up using. I could swear i once saw a tut on someone stopping and starting comps using expressions…
-
Hey Dave, I think you misunderstood. I’m sorry if it was hard to understand, especially for people that don’t know Flash. What I am saying… is there a way to tell certain compositions to start and stop at different times while playing. So for instance, at say the 2:10 mark of playback, an Expression tells another comp to play its animation. Hope thats more clear.
-
Sure…below:
// Ease and Wizz 2.0.4 : inOutExpo : All keyframes
// Ian Haigh (https://ianhaigh.com/easeandwizz/)
// Last built: 2013-07-05T11:46:51+10:00
// some defaults
var p = 0.81; // period for elastic
var a = 50; // amplitude for elastic
var s = 1.70158; // overshoot amount for "back"
function easeandwizz_inOutExpo(t, b, c, d) {
if (t==0) return b;
if (t==d) return b+c;
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
}
function easeAndWizz() {
var n = 0;
if (numKeys > 0) {
n = nearestKey(time).index;
if (key(n).time > time) { n-- }
}
try {
var key1 = key(n);
var key2 = key(n+1);
} catch(e) {
return null;
}// determine how many dimensions the keyframes need
var dim = 1; // It's gotta have at least ONE dimension
try {
key(1)[1];
dim = 2;
key(1)[2];
dim = 3;
} catch(e) {}
t = time - key1.time;
d = key2.time - key1.time;
sX = key1[0];
eX = key2[0] - key1[0];
if (dim >= 2) {
sY = key1[1];
eY = key2[1] - key1[1];
if (dim >= 3) {
sZ = key1[2];
eZ = key2[2] - key1[2];
}
}
if ((time < key1.time) || (time > key2.time)) {
return value;
} else {
val1 = easeandwizz_inOutExpo(t, sX, eX, d, a, p, s);
switch (dim) {
case 1:
return val1;
break;
case 2:
val2 = easeandwizz_inOutExpo(t, sY, eY, d, a, p, s);
return [val1, val2];
break;
case 3:
val2 = easeandwizz_inOutExpo(t, sY, eY, d, a, p, s);
val3 = easeandwizz_inOutExpo(t, sZ, eZ, d, a, p, s);
return [val1, val2, val3];
break;
default:
return null;
}
}
}
(easeAndWizz() || value);The only thing that would change ease-wise would be the Type of ease, say "Back.easeIn" for instance.
-
Thanks Dan, any code examples on this? I’m pretty new with Expressions so I wouldn’t even know where to start.
-
Ah. It was 10 minutes long. Bingo. I shortened to 30 seconds and it worked. So I guess this needs to be kept in mind when you’re working in a long comp.
-
Thanks so much, that did it. Any idea why this would break in CS6 and how come its never been noted with such a popular expression library such as this?