Emil Stefanow
Forum Replies Created
-
Emil Stefanow
August 19, 2019 at 1:56 pm in reply to: Triggering precomp animation via property (rotation, opacity, etc.)Hey folks…
Okay, a bit weird answering my own question but I found a solution by Dan Ebberts! it is not 100% as a wished but rather 99% ????
Since I use sampleImage and a precomp/mask for the scaling animation, the idea with the sampleimage came in great and handy! Thank you Dan!!!
The solution is from this topic:
https://forums.creativecow.net/docs/forums/post.php?forumid=227&postid=22329&univpostid=22329&pview=tCheers
EmilL = thisComp.layer("sampleLayer_A");
threshold = 0.00001;
trig = false;
ss = [width,height]/2;
for (f = timeToFrames(); f >= 0; f--){
t = framesToTime(f);
v = L.sampleImage(L.fromComp(toComp(anchorPoint,t),t),ss,true,t)[3];
if (trig && (v < threshold)) break;
if (v >= threshold) trig = true;
}
t = trig ? time - framesToTime(f+1) : 0; -
Hi Sander!
The script is amazing! Thank you!
By the way, is it possible to prevent it from randomly have same colors at any given frame?Let’s say I have 3 layers (L1, L2, L3) that get 10 random colors (C1, C2, C3, C4,…, C9,C10)
First change delivers L1->C4, L2->C8, L3->C10
Second change delivers L1->C2, L2->C4, L3->C9
Third change delivers L1->C5, L2->C5, L3->C7 (<—- here I would like to prevent the script from randomly giving out the same color twice (or even 3 times). Is it posible?)Thank you!
Best regards
Emil -
Hi Jacob,
Have a look at Dan’s solution, he uses Math.max:
https://forums.creativecow.net/thread/227/31816
-
Emil Stefanow
August 29, 2018 at 10:24 am in reply to: Substituting a 3D solid layer from a AFX comp with a video in PremiereThank you Dave.
Unfortunatelly the customer doesn’t have any AFX knowledge (and the AFX setup isn’t that easy for a newbie.
So I guess we stick to the AFX solution and deliver a final video. :/Best regards
Emil -
Wow, Dan!
This expression is amazing! Thanks so much! For my purposes I have even defined over 15 colors!I have inserted it onto the Fill Effect (Color) of a Solid in a Comp named “Comp A”.
I also have Comp B, Comp C, Comp D, Comp E and Comp F with the same setup (Solid with the same expression mentioned). The expression works like a charm.Is it howerer possible to tweak the expression(s) so that the random colors are NEVER the same at any given frame? The use the same pre-defined colors but are never the same. With seedRandom it probably doesn’t work, because it’s still randomness.
Thank you!
EmilC1=[255,255,255,255];
C2=[252,249,245,255];
C3=[208,209,203,255];
C4=[225,241,236,255];
C5=[234,204,182,255];
C6=[251,243,234,255];
C7=[48,39,37,255];
C8=[226,236,176,255];
C9=[98,150,54,255];
C10=[253,210,121,255];
C11=[111,33,73,255];
C12=[144,26,126,255];
C13=[118,72,152,255];
C14=[242,134,0,255];
C15=[235,90,55,255];
C16=[174,35,43,255];
C17=[60,28,20,255];
colors = [C1/255,C2/255,C3/255,C4/255,C5/255,C6/255,C7/255,C8/255,C9/255,C10/255,C11/255,C12/255,C13/255,C14/255,C15/255,C16/255,C17/255];
easeTime =comp("Comp 1").layer("CTRL").effect("easeTime")("Slider");
segDur = comp("Comp 1").layer("CTRL").effect("segDur")("Slider");curSeg = Math.floor(time/segDur);
t = time%segDur;
seedRandom(curSeg,true);
idx1 = Math.floor(random(colors.length));
seedRandom(curSeg-1,true);
idx0 = Math.floor(random(colors.length));
ease(t,0,easeTime,colors[idx0],colors[idx1]) -
Emil Stefanow
August 24, 2018 at 3:33 pm in reply to: Substituting a 3D solid layer from a AFX comp with a video in PremiereThank you Kalleheikki,
That’s my suspicion, too. Unfortunatelly.
I don’t think it’s possible to “transfer” the corner pin data from AFX into AE directly, or? That would be a big help.Best regards
Emil -
Emil Stefanow
August 24, 2018 at 1:40 pm in reply to: Substituting a 3D solid layer from a AFX comp with a video in PremiereThe customer doesn’t have After Effects and I would like to deliver a kind of a template where he can just substitute the footage. Also possible with Essential Graphics?
Thank you!!!
-
Emil Stefanow
August 24, 2018 at 1:26 pm in reply to: Substituting a 3D solid layer from a AFX comp with a video in PremiereHi Kalleheikki,
Thank you for the answer! ☺
How do I replace a AFX Solid with a footage in Premiere (not FROM Premiere but IN Premiere)?
Thank you!Best regards
Emil -
Emil Stefanow
August 23, 2018 at 1:27 pm in reply to: Customize layer sources for escential graphics creations?Hi,
Let’s say you have a comp with following 3 layers:1. Text
2. videocomp_A
3. videocomp_BYou want that when people type in “A” in the essential graphics text field, then Videocomp A is visible, when people type in “B”, then Videocomp B, or?
Put the following code in the Opacity of videocomp_A:
myTextLayerContent=thisComp.layer("Text").text.sourceText.value;
if (myTextLayerContent == "A") 100 else 0and for videocomp_B:
myTextLayerContent=thisComp.layer("Text").text.sourceText.value;
if (myTextLayerContent == "B") 100 else 0Best regards
Emil