Byron,
That should work. What kind of error message are you getting?
Dan
Search found 320 matches
- September 14th, 2010, 1:34 pm
- Forum: Scripts Discussion
- Topic: Select / Unselect a layer?
- Replies: 2
- Views: 6495
- September 8th, 2010, 2:30 pm
- Forum: Scripts Discussion
- Topic: Parse CSV: Ignore First Line
- Replies: 2
- Views: 7802
Re: Parse CSV: Ignore First Line
Try this (not tested):
Dan
Code: Select all
for (i = 1; i < lines.length; i++) {
table[i-1] = lines[i].split(",");
}
Dan
- September 2nd, 2010, 2:53 pm
- Forum: Expression Discussion
- Topic: [Solved] Move text with expression relative to parent
- Replies: 11
- Views: 21791
Re: Move text with expression relative to parent
Try changing the sampling line to this:
s = L.sampleImage([i,L.width/2],[.5,L.width/2],false,time);
That should make it sample before any effects are applied to the layer.
Dan
s = L.sampleImage([i,L.width/2],[.5,L.width/2],false,time);
That should make it sample before any effects are applied to the layer.
Dan
- September 2nd, 2010, 2:13 pm
- Forum: Expression Discussion
- Topic: [Solved] Move text with expression relative to parent
- Replies: 11
- Views: 21791
Re: Move text with expression relative to parent
Hard to say without seeing it. The expression is looking for the right-most pixel that has a non-zero alpha, so anything that could affect that (motion blur?) would be suspect.
Dan
Dan
- September 1st, 2010, 1:27 pm
- Forum: Expression Discussion
- Topic: [Solved] Move text with expression relative to parent
- Replies: 11
- Views: 21791
Re: Move text with expression relative to parent
Ah, OK. This should fix it:
Dan
Code: Select all
L = parent;
for ( i = L.width; i >= 0; i--){
s = L.sampleImage([i,L.width/2],[.5,L.width/2],true,time);
if (s[3] > 0) break;
}
[i + 10 - L.toWorld(L.anchorPoint)[0],value[1]]
Dan
- September 1st, 2010, 11:03 am
- Forum: Expression Discussion
- Topic: [Solved] Move text with expression relative to parent
- Replies: 11
- Views: 21791
Re: Move text with expression relative to parent
It works fine for me. Are both your text layers left-justified?
Dan
Dan
- August 31st, 2010, 4:34 pm
- Forum: Expression Discussion
- Topic: [Solved] Move text with expression relative to parent
- Replies: 11
- Views: 21791
Re: Move text with expression relative to parent
Unfortunately, you can't directly get the bounds of a text layer with an expression. You can use sampleImage() to find the edges though. Assusming your text layers are left-justified, something like this should be close: L = parent; for ( i = L.width; i >= 0; i--){ s = L.sampleImage([i,L.width/2],[....
- August 23rd, 2010, 3:42 pm
- Forum: Expression Discussion
- Topic: Dan Ebberts' Pendulum expression
- Replies: 1
- Views: 12901
Re: Dan Ebberts' Pendulum expression
Possibly your layer's In Point is not at time = 0;
Try it this way:
veloc = 7;
amplitude = 80;
decay = .7;
t = time-inPoint;
amplitude*Math.sin(veloc*t)/Math.exp(decay*t)
Dan
Try it this way:
veloc = 7;
amplitude = 80;
decay = .7;
t = time-inPoint;
amplitude*Math.sin(veloc*t)/Math.exp(decay*t)
Dan
- August 19th, 2010, 4:59 pm
- Forum: Script requests
- Topic: layer always facing the ground
- Replies: 3
- Views: 9502
Re: layer always facing the ground
>when theire is a movement my layer dont even move with the my setup
The expression linking the non-rotating layer to the null's position should look like this:
Dan
The expression linking the non-rotating layer to the null's position should look like this:
Code: Select all
L = thisComp.layer("Null 1");
L.toWorld(L.anchorPoint)
Dan
- August 19th, 2010, 11:25 am
- Forum: Script requests
- Topic: layer always facing the ground
- Replies: 3
- Views: 9502
Re: layer always facing the ground
I'm sure there's a way to do it with 3D rotation matrices, but it's probably messy. Do you really need it to be parented to the other layer? How about if you had a position expression that always keeps the layer at the same relative position. Even easier, possibly, would be to parent a null to the r...
- August 9th, 2010, 4:24 pm
- Forum: Scripts Discussion
- Topic: Addding an effect to a layer
- Replies: 21
- Views: 96382
Re: Addding an effect to a layer
OK, like this then (substitute in the name of the image layer) var myLayer = myComp.layer("name of your image layer goes here"); var myEffect = myLayer.property("Effects").addProperty("ADBE Fast Blur"); myEffect.property("ADBE Fast Blur-0001").setValue(17); Dan
- August 9th, 2010, 3:17 pm
- Forum: Scripts Discussion
- Topic: Addding an effect to a layer
- Replies: 21
- Views: 96382
Re: Addding an effect to a layer
Try changing "myLayer" to "mySolid"
Dan
Dan
- August 9th, 2010, 10:31 am
- Forum: Scripts Discussion
- Topic: Addding an effect to a layer
- Replies: 21
- Views: 96382
Re: Addding an effect to a layer
This should work: var myEffect = myLayer.property("Effects").addProperty("Fast Blur"); myEffect.property("Blurriness").setValue(17); If you're using a foreign language version of AE, you may need to use the match names like this: var myEffect = myLayer.property("Ef...
- August 7th, 2010, 10:44 am
- Forum: Scripts Discussion
- Topic: Addding an effect to a layer
- Replies: 21
- Views: 96382
Re: Addding an effect to a layer
You have a lot of work left to do. You need to import your images (see ImportOptions() and importFile() in the scripting guide). You need to add each image to the comp and then add the effect. You need to add your comp to the render queue (app.project.renderQueue.items.add(comp). You may also need t...
- August 6th, 2010, 2:56 pm
- Forum: Scripts Discussion
- Topic: Addding an effect to a layer
- Replies: 21
- Views: 96382
Re: Addding an effect to a layer
My guess is that your comp may not be the first item (item(1)) in the project bin. If you make sure the comp is selected you could use activeItem instead, like this: var myComp = app.project.activeItem; myComp.layer("spot1.jpg")("Effects")("Fast Blur")("Blurriness&...