"3D warp" as seen on tv.adobe "What's New", does not seem to be available on my version of CS6 AE (from disk). I'm not getting the geometry option even though,I have the 3D box checked and it is a pixel based layer. I do get the other expression options such as transform and material options. Can anyone help me bend stuff?
3D WARP/3DBEND: geometry expression no show?
Analog Clock
Hi,
Im making an analog clock with a minute, second and hour handle.
hey shall rotate properly relative to each other. Its my first time using expressions and Im a bit lost. I want the time to speed really fast, for so slowing down and stopping completely.
Right now Im using this on z rotation:
time*5 on the hour handle
time*60 on the minute handle and
time*720 on the seconds.
Please, If someone could help me with accomplishing this I would be so grateful.
Expressions from AE CS6 not working in AE CC
We have used some expressions in an AE CS6 project to fill text from an external file. Here's an example:
try{
/* "mypath" must be absolute to data file */
myPath = "file:////nynfile1/Production/Egg/Marque/data.txt";
$.evalFile(myPath);
/* Use [0,1,2] for array offset value(Name, Date, Time)*/
eval(thisComp.name)[0];
}catch(err){
/* Display if data error found*/
"text not found";
}
It works fine in CS6. When we open the file in AE CC, the expressions can't find the data.txt file to pull text from. All we get is the "text not found" error. We stepped through debug and the data.txt file doesn't open/isn't found.
What up with that?
How to delay opacity following another layer
Hello All.
I have 100+ layers that I would like to fade on in a delayed fashion following the manual opacity key frames set in a 'master' layer. Thus, each of the 100+ layers will incrementally fade on by half a second — after the 'master' layer has faded in.
My research has led me to this expression:
thisComp.layer("leader").transform.opacity.valueAtTime(time-thisComp.frameDuration)
however the above fades in all 100+ layers simultaneously. I'd like the layers to fade in one after the other.
Can anyone suggest the script to make this happen please?
AE expression for "length of text layer" for lower thirds nameplate
Is there a way to measure the total width (and height) of a text layer, to automatically update the length (and height) of a shape layer? I produce web news segments with 7-15 lower thirds displays for each video. I'm looking for a more efficient way to re-size each nameplate. Currently I manually re-size each shape layer to fit the name. Is there an expression that will update the shape layer, based on the length (in pixels) of the text layer?
See an example video of what I'm talking about:
http://dallasvoice.com/dvtv_track.php?s=345
(look for the nameplates that animate in at the beginning of each interview)
I've read everything I can get my hands on, but nothing has helped. Any help would be appreciated!
-RY
Keeping Exponential Scale "live" with expressions
As you know, once you run the animation assistant, the keyframes are locked down and if I need to change the start or end values, I have to delete all the intermediate KFs and re-run the animation assistant. Kind of a hassle, eh?
It would be cool if I could set a start and stop keyframe or layer markers and have the expression do its thing between a min and max value (via sliders?).
Font Size Expression
I need an expression that would automatically change the font size based on how many characters are typed in.
The goal is to fit multi-line text into a bounding box as it's read from the external text file.
Does anyone know whether it's possible through an expression, or SDK by writing a plugin? So far I was unable to find any info on this topic.
Thanks for any ideas.
follow a leader with delay
hi
i have bunch of layers all distributed in z space.All in a row.So,they have all differenent position data.
Now the first layer starts to move towards the camera.After a specific time i.e 1.5 secs i want to move the second layer to move with the first one.etc.
thisComp.layer(thisLayer,-1).position.valueAtTime() doesn't work.
something similar to this>
start = 0; //start time of template motion
end = 4.0; //end time of template motion
t = thisComp.layer("template");
offset = (t.effect("offset")("Slider")/100)*(index -1);
travel = linear(t.effect("travel")("Slider")/100,start,end);
t.position.valueAtTime(travel - offset)
any ideas?
cheers
How to delay an animation
Sorry for my bad english: i'll try to be clear.
Once a layer has some animation (position, scale etc),
how can i link another layer to this first one (or the animated property of the first one to the another equivalent one)
and make the second layer animation delay some number of frames?
Another situation:
same start point above, but, after duplicate that layer,
how to delay the animation time some frames?
Thanks for the attention
Expression at a specific time
Hi,
when I apply an expression it starts from the beginning of the composition, but if I want to start it, for example, after 10 seconds, how can I?
Sorry for my english.
expression error
Hi-
I am trying to link a layer in after effects to the position of another layer.
I get an error stating that it is expecting a number, array or property.
I know I am getting this wrong. Is there somewhere I can go to get a good understanding of what should be added to the end of the expression?
I want the layer (smoke) to track the position of another layer (sparks).
Thanks in advance-
-C
Using sourcetext from another layer as an array - blowing up expression
Hey all, I am doing something that I assumed would be a quick and easy, and it is turning into quite a headache.
Here is what I am trying... (The following works btw)
stuff = thisComp.layer("textSource").text.sourceText;
stuff[2]
The problem is that if I try an index higher than 3, the expression blows up. The error is somewhat odd too...
property or method named '4' in Class 'TextProperty' is missing or does not exist. It may have been renamed, moved, deleted...
The source layer has not gone anywhere. The only thing that changes was the index.
I want to break down the sourceText into individual letters to feed something else and this was how I was going to go about it as I don't think the you can 'split' into letters. I figured I could get the length of the string and then scoop out each letter. Not so much eh'?
Update...
Tried it with split, and this also breaks it. What's odd is it seems to work for just a moment, so the script takes the index, displays the letter, waits a second, then freaks out. It does the work/breaking thing as long as the string has contains enough characters, as where a request for something that is not there immediately breaks it (which we would expect)
stuff = thisComp.layer("This").text.sourceText.split("");
stuff[15]
Syntax Error on Mac
I am trying to use the following expression:
Math.sin(time * effect(“Speed”)(“Slider”)) * 45
I got the expression from this tutorial: AFTER EFFECTS TUTORIAL - Animate Butterfly / Bird - YouTube
I've not worked with expressions before... but some Googling showed several folks running into the issue of this not working on a Mac.
Can anyone offer any advice? Thanks!
Expression that changes y-position continuously?
How do I write an expression that moves my layer continuously in the y-axis 10 pixels each frame?
Source Text Generated by Expression - Current Value?
I'm writing an expression to control the sourceText of a text layer based upon the length of another text layer. Part of the functionality is to only update the current layer text if there is a large enough change in length. Is there a way to access the current value of the text layer that was generated by the expression? value and sourceText.text point to the text set on the text layer, not the generated layer.
Here's my expression
function calc(prevValue) { var textLength = thisComp.layer(1).text.sourceText.length; var perc = thisComp.layer(2).text.animator("Animator 1").selector("Range Selector 1").start; var newValue = 140 - Math.floor(textLength * perc / 100); return (parseInt(prevValue) - newValue) < 10 ? prevValue : newValue; } //Need to pass the previously generated text value here...how do you access it? calc(text.sourceText);
Couldn't find any way to access it in the expression references.
Thoughts?
Calvin
Audio triggering footage based on values
Hello,
I've come across a video that I've come interested in understanding how it works...
I'm pretty sure it has been done manually, and not with a template that you can drag a song and it would output something like that.
However the idea of "triggering" footage (stock fire, logotype rotation on x-axis, etc) is bugging my mind.
Given values based on (a certain freq that we want to trigger the reaction) of the song, whether using some third party plugins like Trapcode Sound Keys, or by simple Convert Audio to Keyframes, I can't think of any idea on how a high value could trigger an animation on any given frame (since we have no idea when those values would be, imagine it should work for any given song). I imagine it's a possibility to have the animation of a few frame shorts, constantly looping, and easily playing with opacity could make a decent effect, but still I'm sure there must be a way to do something similar to what they've done.
Take for example the fire, except you have a plug-in generating it that you can control with a slider (if this would be the case, if would be really simple to do the song reaction), you can't really properly switch from footage A (fire being really low) to footage B (fire being way more crazy) without it flickering or producing some undesired effect, can you? Same question applies for footage C (3d logotype facing front) to footage D (3d logotype rotating horizontally), and even for certain freq making some stock fire appear and play just once.
Just wanted to show you in case someone had an idea or perhaps shared my enthusiasm on finding out how it works.
Thank you for taking the time to read this post.
Kind regards,
- Juan
AE CC 2014 - Wiggle Expression not assigning similar values on scale
So I've just noticed that the wiggle expression no longer works how it used to. I found a released article explaining changes in the Noise Algorithm used for the wiggle expression what’s new and changed in the 2014 update to After Effects CC | After Effects region of interest and am referring to the "fixed bug in implementation of Perlin noise algorithm" section.
I'm not sure if this is what's causing the issue but let me explain.
I'm just adding a wiggle expression on to an object's scale.
wiggle(5,50);
This would normally scale the object's parameters with the same value. so it would be (100,100) to (125,125) and so on.
Now however with CC2014 the expression is assigning different values to each value so getting (125, 115) or something even if the 'constrain proportions' button is enabled.
So I tried to trick it:
temp=wiggle(5,50);
[temp[0],temp[1]];
Still got different values even though i'm telling it to insert the same variable?
temp=wiggle(5,50);
temp;
Still got different values... I don't get it can anyone help?
Wiggle expression - slider control
Hi all
I had a solve for this from Dan Ebberts but I seem to have lost that content in the Jive update. I want to use a slider control for a wiggle, but when I have my basic wiggle expression applied to position, then pick whip from that to the slider, I get the below expression.
temp = effect("Wiggle Control Sliders")("Slider");
[temp, temp]
What is the fix for this/ way to do it right?
At the minute I'm using the expression below instead, but I hate not knowing the right way to do something! Using sliders/ creating decay in expressions has always been an issue for me...
wiggle(15,effect("Slider control")("Slider"))
Any help would be appreciated
Thanks!
Start to Play Composition at Position Y
Hey guys,
i started to try a build that the compositions start at the position of 400 in my main-composition.
I build this with a null-object that controls the compositions.
I tryed with markers, but i dont know and i dont have any idea how to do.
what is the command for play a composition?
Her my after effects file
http://sebastian-hielscher.com/-download/MARKER2.aep
Hope anyone can help me.
Sorry for my bad english.
Kind Regards
Sebastian
Random motion from a certain position to random position
Hello, i saw lot of random motion expressions but they were looped, and starting, finishing positions were random, I need help with making an expression that will allow me to make a certain starting position and then make random ending position without looping
for example: from (600,600) to (X,X)with limit 120%, so the layers will go out of composition and will not come back
I wanted to make it for one animation, where one robot shots the other, and from him will explode many parts to random positions.
Can someone help me to make this expression please?
Thank you very much