Lloyd Alvarez
Forum Replies Created
-
you don’t need the temp array, but it should work regardless. try this:
temp = thisComp.layer(“fond anime.avi”).transform.opacity;
S=linear(temp,0,100,-48,0);
[S,S]-Lloyd
-
There’s already a website that does that. Just google: after effects enhancers.
-Lloyd
-
Unfortunately there is no way to open a comp through scripting, but what exactly are you trying to do? There’s other ways to work with comps without having to open them..
-Lloyd
-
Hey Joe,
If I understand you correctly, you can do this with text animators, no need for expressions..
here’s the adobe help page on animators:
https://livedocs.adobe.com/en_US/AfterEffects/8.0/WS3878526689cb91655866c1103906c6dea-7cbe.htmlyou’ll want to animate the character value and offset..
-lloyd
-
Unfortunately you can’t get the correct width of a text layer using expressions, but you do have a few options.. The best and easiest in my opinion is to incorporate that triangle into your font and let say you assign that triangle to the ^ key then you could write this expression in the sourcetext property of the text layer:
value + “^”
Alternatively you could have the text justify right (but not sure that is a option for you) and have the triangle be a simple offset for the text layers’ anchor point.
Lastly you can get the correct width of a text layer through scripting, let me know if you need any guidance in that dept..
-Lloyd
-
in case you are wondering what the gi stands for:
search (g)lobally for the string and be case (i)nsensitive
-
try this:
text.sourceText.replace(/something to replace/gi, “what to replace it with”)
-Lloyd
-
Just replace the 100 with value like this:
if (comp(“KT81109_cave monsterW2 OL”).layer(“Null 1”).effect(“NZ toggle -NZ if on”)(“Checkbox”)==true) {
0
} else {
value
}-Lloyd
-
-
You can animate the position in a spiral by moving the x & y on a sine and cosine wave and z in time like this:
phase=0;
amplitude=20;
frequency=10;
z_stretch=100;
x=Math.sin((time+phase)*frequency)*amplitude;
y=Math.cos((time+phase)*frequency)*amplitude;
z= (time+phase)*z_stretch;
[x,y,z]You can change the value of the phase (positive or negative) for your second strand so that they twirl around each other.
If you are using particular you’ll need to split the expression out like this:
phase=0;
amplitude=20;
frequency=10;
z_stretch=100;
x=Math.sin((time+phase)*frequency)*amplitude;
y=Math.cos((time+phase)*frequency)*amplitude;
[x,y]and:
phase=0;
amplitude=20;
frequency=10;
z_stretch=100;
z=(time+phase)*z_stretch;-Lloyd