Adam Haas
Forum Replies Created
-
Adam Haas
September 12, 2018 at 10:24 pm in reply to: Remove Music from Dialogue if I have the original MusicI think I got it. I had leave the first portion of the audio not reversed and reversed the rest and it seems pretty close to perfect. Thank you for telling me about this concept.
-
Adam Haas
September 12, 2018 at 9:55 pm in reply to: Remove Music from Dialogue if I have the original MusicI found a video that explained reverse phase (I didn’t know what that was) https://www.youtube.com/watch?v=JF0IofTEii0
From there I have a multi track file with my exported audio and the exact music file from Premiere (exact level, exact fade in, etc) and they aren’t canceling out like I would have imaged. Is there a step I’m missing?
Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.
-
Adam Haas
August 14, 2018 at 6:05 pm in reply to: Change Shape Layer Color Based on Source Text ValueThat did the trick! Thank you so much.
-
Adam Haas
August 14, 2018 at 5:58 pm in reply to: Change Shape Layer Color Based on Source Text ValueWell, it’s kind of working. I see the colors change, however when I try to set to a specific color, it just ignores it:
txt = thisComp.layer("text").text.sourceText;
if (txt == "Good")
[121,193,143,1]
else if (txt == "Bad")
[189,80,80,1]
else
value
-
Oh that is so much better. Thank you so much for your patience.
Using my original text:
Interviewing Verbal Communication
Interviewing Verbal Communication – Action Plan
Inexperienced % Describe a Conflict & Its Resolution
Inexperienced % Describe a Conflict & Its Resolution – Action Plan
Inexperienced % Describe a Conflict & Its Resolution # Español
Inexperienced % Describe a Conflict & Its Resolution # Español – Action PlanMy code works as so:
HyphenText = thisComp.layer("LessonTextSource").text.sourceText.split(" - ");if (HyphenText.length > 1)
HyphenText[1];
else
"";
PoundText = thisComp.layer("LessonTextSource").text.sourceText.split(" # ");if (PoundText.length > 1)
PoundText[1];
else
"";
PercentText = thisComp.layer("LessonTextSource").text.sourceText.split(" % ");if (PercentText.length > 1)
PercentText[0];
else
"";
-
I was able to get this to work by adding the special characters, even if there is no text there, and then just displaying the innermost text :
TextArray = thisComp.layer("LessonTextSource").text.sourceText.split('\r');
ArrayIndex = timeToFrames()%TextArray.length;TextArray[ArrayIndex].split("% ")[1].split(" -")[0];
I didn’t think I could use split more than once, but it makes my body of text gross.
I came across someone using length, but didn’t understand how it worked. Now I can’t find where I saw it. Can you give me an example of how that works?
-
The code is throwing an error for instances where the % is not present, true. However, how will checking the length allow me to determine if there is a character in it?
I found this code:
myChar = "•";
if (text.sourceText[textIndex-1] == myChar) 100 else 0
that I tried to nest an IF statement within, but it’s not working:
lessonTextSource = thisComp.layer("LessonTextSource").text.sourceText.replace(/\r?\n|\r/g,'');
percent = "%";if (lessonTextSource[textIndex-1] == percent)
CornerText = lessonTextSource.split(" % ")[1];if (ExperiencedOrInexperienced == "Experienced")
"Experienced"
else if (ExperiencedOrInexperienced == "Inexperienced")
"Inexperienced"
else
"ASDF"
I get this error:
After Effects warning: Expression disabled. Error at line 4 in property 'Source Text'
of layer 2 ('CornerText') in comp 'TestComposition'.
property or method named 'textIndex' in Class 'global' is missing or does
not exist. It may have been renamed, moved, deleted, or the name may have been mistyped.
-
Woah, that worked. I don’t fully understand how (time-InPoint)%d is causing it to loop, but it sure does the trick.
-
You definitely pushed me in the right direction. I was able to simplify it a bit. I didn’t need the “a” variable, because I want to base it on the length of the layer. I also noticed that the first frame of the layer was being caught by the “else” portion of the script, so I changed it to be at or less than the inPoint + the duration of the animation.
Then as I wanted the else statement to occur at whatever the end of the layer was, I used the outPoint variable minus the animation time.
Works great, thank you so much!
t =.25;posa = [0,0];
posb = [100,100];
posc = [100,200];if(time <= inPoint + t) {
ease(time,inPoint,inPoint + t,posa,posb)
}else{
ease(time,outPoint - t,outPoint,posb,posc)
}