Search found 320 matches
- August 4th, 2010, 9:28 am
- Forum: Expression Discussion
- Topic: Run expression after certain time...
- Replies: 1
- Views: 8296
Re: Run expression after certain time...
It's tricky. When your expression detects that the proximity of the other layer is close enough to cause it to flash, it needs to execute a loop that starts at the layer's in point and moves forward in time, frame-by-frame, until it gets to the current time, recreating (using valueAtTime()) everythi...
- August 3rd, 2010, 3:22 pm
- Forum: Script requests
- Topic: Opacity from 100 to 0, in to out
- Replies: 1
- Views: 7354
Re: Opacity from 100 to 0, in to out
This should be all you need:
linear(time,inPoint,outPoint,100,0)
After you apply it to one layer, select the Opacity property then Edit > Copy Expression Only, select all other layers, paste.
Dan
linear(time,inPoint,outPoint,100,0)
After you apply it to one layer, select the Opacity property then Edit > Copy Expression Only, select all other layers, paste.
Dan
- August 1st, 2010, 12:25 pm
- Forum: Expression Discussion
- Topic: How to create a connection between to coordinate values ???
- Replies: 1
- Views: 8088
Re: How to create a connection between to coordinate values ???
Assuming your laser effect is on a 2D layer, it's probably going to be like this:
L = thisComp.layer("Light 1");
fromComp(L.toComp([0,0,0]))
Dan
L = thisComp.layer("Light 1");
fromComp(L.toComp([0,0,0]))
Dan
- June 26th, 2010, 10:40 pm
- Forum: Expression Discussion
- Topic: Calculate angle between Object and Camera in 3D
- Replies: 7
- Views: 22127
Re: Calculate angle between Object and Camera in 3D
If you just want the opacity to go to zero when the layer is facing away from the camera, this should work: toCompVec([0, 0, 1])[2] > 0 ? value : 0 If you need to fade from 100 to zero as it points away from the camera, try this: v = toCompVec([0,0,1]); d = length(toWorld(anchorPoint),thisComp.layer...
- April 22nd, 2010, 8:53 pm
- Forum: Scripts Discussion
- Topic: remove() Delete() DeleteFile() Issues
- Replies: 2
- Views: 6940
Re: remove() Delete() DeleteFile() Issues
This should work:
var myPath = "/Applications/Adobe After Effects CS4/Scripts/ScriptUI Panels/myFolder/myfile.txt";
var myFile = File(myPath);
myFile.remove();
Dan
var myPath = "/Applications/Adobe After Effects CS4/Scripts/ScriptUI Panels/myFolder/myfile.txt";
var myFile = File(myPath);
myFile.remove();
Dan
- April 20th, 2010, 9:01 am
- Forum: Scripts Discussion
- Topic: Changing UI dropdown list
- Replies: 2
- Views: 8964
Re: Changing UI dropdown list
Did you try .removeAll() ?
Dan
Dan
- April 15th, 2010, 1:43 pm
- Forum: Script requests
- Topic: How to open a project using script....?
- Replies: 2
- Views: 8406
Re: How to open a project using script....?
Like this:
Dan
Code: Select all
{
var myPath = "/D/tempProject/";
var myProjectName = "ROTO.aep";
var myProject = File(myPath + myProjectName);
app.open(myProject);
}
- April 13th, 2010, 7:44 am
- Forum: Expression Discussion
- Topic: Layer Space Transform Question.
- Replies: 4
- Views: 12478
Re: Layer Space Transform Question.
Try this:
L1 = comp("the 3d comp").layer("the nested null");
P = L1.toWorld(L1.anchorPoint);
L2 = thisComp.layer("the 3d comp");
L2.toComp(P);
Dan
L1 = comp("the 3d comp").layer("the nested null");
P = L1.toWorld(L1.anchorPoint);
L2 = thisComp.layer("the 3d comp");
L2.toComp(P);
Dan
- April 9th, 2010, 1:42 pm
- Forum: Expression Discussion
- Topic: Basic Expression Question
- Replies: 1
- Views: 7738
Re: Basic Expression Question
Is this what you mean?
y = effect("Slider Control")("Slider");
[value[0],y]
Dan
y = effect("Slider Control")("Slider");
[value[0],y]
Dan
- April 8th, 2010, 4:37 pm
- Forum: Scripts Discussion
- Topic: typeName differences depending on app.language
- Replies: 2
- Views: 7232
Re: typeName differences depending on app.language
Like this:
if (item instanceof CompItem)
Dan
if (item instanceof CompItem)
Dan
- April 6th, 2010, 10:24 pm
- Forum: Scripts Discussion
- Topic: End of file when using readln ? (javascript eof)
- Replies: 2
- Views: 10057
Re: End of file when using readln ? (javascript eof)
Like this:
Dan
Code: Select all
while(! myFile.eof){
t = myFile.readln();
//alert(t) or whatever
};
- April 6th, 2010, 8:06 am
- Forum: General Scripts Library
- Topic: Quick effects palette
- Replies: 43
- Views: 193507
Re: Quick effects palette
You could use the match name for AE's glow which is "ADBE Glo2".hype wrote: Unfortunately, the palette grabs the Pete's plugin one, not the AE one. Any ideas on how I can get it to differentiate?
Dan
- March 31st, 2010, 7:58 am
- Forum: Scripts Discussion
- Topic: split does not work here
- Replies: 2
- Views: 6700
Re: split does not work here
I think your footagePath is actually a file object. Try this:
var footagePath=selItems.file.path;
Dan
var footagePath=selItems.file.path;
Dan
- March 30th, 2010, 9:01 am
- Forum: Expression Discussion
- Topic: store variable
- Replies: 1
- Views: 8197
Re: store variable
Expression data does not persist from frame to frame. If you need data from a previous frame, you have to regenerate it. If you can base all your calculations on comp time, then it's pretty easy. Sometimes though, you end up having to recalculate frame-by-frame, starting at time = 0.
Dan
Dan
- March 30th, 2010, 8:01 am
- Forum: Scripts Discussion
- Topic: NaN ???
- Replies: 2
- Views: 9969
Re: NaN ???
Nan is a JavaScript reserved value that indicates that the result is "Not a Number". There are a number of ways you can get this, including trying to divide by zero. I'm not sure why you would get it for your spatial tangent though.
Dan
Dan