Posts by felt_tips

5277 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+10 more
felt_tips Moderator says

Hello everybody,

Im using AE CC on Mac 10.8.5 I had the problem, described by Madlistudio, happening to me just yesterday. I purchased two different AE Templates from diffrent autors. AE had to convert both projects from windows to mac. After that, a long list of missing effects apeared and the projects were not working properly. Any ideas, what I could do about it? Thank you in andvance,

Marzena

Ae doesn’t have to convert from Windows to Mac. The file format is cross platform. If it had to convert, then most likely from a project created by an older version of After Effects to your current version.

I don’t know what the missing effects might be about. Which ones were missing? That shouldn’t happen. Is your Ae installed correctly? Are you using Ae in english.

5277 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+10 more
felt_tips Moderator says


The code is very precise. Your description needs to be very precise too. You need to describe the exact structure of your project or you need to make a project file available.

https://www.dropbox.com/s/mxj0q6eqcoftohc/Precomp%20two%20sided%20layers.aep?dl=0 I want to rotate a “Pre-comp” layer in Comp 1 and that layers be two sided.

Thanks… I’ll have a look at the weekend.

5277 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+10 more
felt_tips Moderator says


Hi Andrew, I can’t remember what the original question was in the post you quoted and I don’t really understand your question. Can you explain what you’re trying to achieve?
Hi. This thread began with the post:
How to make a layer invisible when facing away from camera ? I found a few solutions for different cases but not for all..Please help! :)

Level I: Just a 3D layer if (toCompVec([0, 0, 1])[2] > 0 ) value else 0

Level II: Pre-compose 3D layer value*normalize( dot(toWorldVec([0,0,1]),normalize(comp(‘MainComp’).activeCamera.toWorld([0,0,0])-toWorld(anchorPoint))));

Level III: Pre-compose 3D layer AND composition rotation ???
You found solutions for Level III. I need to solve for Level 4: In Pre-compose several rotating 3D layers AND Pre-compose in Comp1 rotation

The code is very precise. Your description needs to be very precise too. You need to describe the exact structure of your project or you need to make a project file available.

5277 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+10 more
felt_tips Moderator says


Make a 3D layer called Solid 1 in a comp called Comp 1. Pre-comp it moving attributes. Make the layer created 3D, collapsed and call it “Pre-comp”. Inside precomp, make a 3D Point Control effect (I think this exists in CS5.5) and call it “world vec”. On this effect use the expression…
thisLayer.toWorldVec([0,0,1]); 

This makes sure that the toWorldVec calculation is taking place with respect to the world space inside that comp. (which of course is the same as the layer space of the layer “Pre-comp”).

Then, make a Tint effect on the layer “Pre-comp”. On the Amount to Tint property do this…

v = thisLayer.source.layer("Solid 1").effect("world vec")(1); //pick up the world coords from the effect
vWrld = thisLayer.toWorldVec(v);
vecCamToLyr = normalize(thisLayer.toWorld(thisLayer.anchorPoint)-thisComp.activeCamera.toWorld([0,0,0]));
dot(vecCamToLyr, vWrld)>0 ? 100 : 0;

I’m using the dot product, because toCompVec seems to be unreliable with any vector other than [0,0,1]. Not quite sure why. I’d need to spend some time testing it. The dot product compares the orientation of the calculated vector in world space and the vector from the camera to the layer.

I’m being a bit rushed with this, ‘cos I’ve got lots to do, but hopefully this will work. It seemed to work when I gave it a quick test.
How to rewrite these expressions that overlay Tint effect several layers in “Pre-comp” ? “Pre-comp” consists of several 3D layers, each of which is overlay Tint.

Hi Andrew,

I can’t remember what the original question was in the post you quoted and I don’t really understand your question. Can you explain what you’re trying to achieve?

5277 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+10 more
felt_tips Moderator says

Always a big landmark for an item. Congratulations!

5277 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+10 more
felt_tips Moderator says

Hello guys, is it possible to set a specific time to start at a layer marker ?

For example:

time flows normally : 1s,2s,3s,4s,5s…

Then, when the time indicator reachs the marker it jumps to 30s and flows from that point: 30s,31s,32s,33s…

Is it possible ?

For this simple scenario, you only need a single line of code on the Time Remap property.

if(marker.numKeys) {time>=marker.key(1).time ? 30+(marker.key(1).time-time) : value} else value;

The ? and : part is a ternary expression and is a useful shorthand way of writing an if else statement.

5277 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+10 more
felt_tips Moderator says



After reading 20 times your answer, i still don’t understand what you mean, does anyone else could help me ? Thanks

Since you’re using the Size property of the vector rectangle to adjust the size of the layer “Frame” and not its Transform -> Scale property, you need to link the Scale of the layer “Background” to this Size property, not the Scale property.

Because the Size property is in pixels and the Scale property that you want to link to it is a percentage, you need to work out what Scale you will need to make the layer “Background” have the same pixel width as the layer “Frame”. To do this, you divide the target width in pixels by the width of the layer “Background”’s source and multiply by 100. The code is below. Take some time if you can to study and understand it.

L = thisComp.layer("Frame");
currentWidth = thisLayer.source.width;
targetWidth = thisComp.layer("Frame").content("Rectangle Path 1").size[0];
tWidth = 100*targetWidth/currentWidth;
[tWidth, value[1]];
Note: this code will only work if the Scale of the layer “Frame” is 100%. Otherwise, the code needs to be somewhat more complex. Also, if you scale the layer “Frame” by making it the child of another layer and then scaling that, this code will fall down (in that case it would need to get quite a lot more complex still).
Thanks again for your answer, unfortunatly, i’m scaling the ’’frame’’ layer trought a slider located on itself, as you said, if it is too tricky and too time consuming for you to write it, i’ll understand, don’t worry.

Without seeing the exact set-up of your project, Martin, I’m really only guessing about what you’re trying to do. If you’re finding it hard to write the code, imagine what it’s like without the project in front of you. If you want to send me your project (minus all assets) I can take a look, but it might not be for a week or so. I’m inundated with work at the moment.

5277 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+10 more
felt_tips Moderator says

It’s SOLVED with a script… Thanks again!

Yep… definitely a scripting thing. Expressions are for creating dynamic relationships within an existing structure. If you want to change the structure, you need scripting (which you can think of as a kind of macro for user input).

5277 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+10 more
felt_tips Moderator says

Hey all. I just can’t find answer it or i just missed it, but my question is… Is there a way to change source text color, font and size but to affect my “parent” text? Thank’s

You can cheat source text color and size, but you still can’t change a font using expressions as far as I’m aware.

5277 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+10 more
felt_tips Moderator says

Hello everyone,

I have an issue with markers and keyframes, to be more precise with connecting keyframes with markers. So, I have a time remapping on my composition, and its ok when it’s 2 keyframes, but when i want to add more, for example to reverse animation, I get stuck. i have tried to add more, but it doesn’t work. Hope you guys have a solution.

The problem is that you’re specifically referring to the keyframe number 2, but you’re only checking that there is one or more keyframes.

What you actually need to do is check the previous and the next keyframe. Sounds like a similar job to what I posted for Amberija a couple of days ago.

But until you give me a better description of what it is you’re trying to achieve, I can’t help much further.

It does strike me as though you’re trying to use markers as pseudo-keyframes though. I really wouldn’t bother with this. If you get into this way of working (presumably to make life ‘easier’ for template customers), what you’re actually doing is making a lot of extra coding work for yourself, and a lot of overheads for After Effects to (unnecessarily) calculate on every frame. You need to check a lot of things – are there the same number of keyframes as markers? Are you before the first marker or after the last marker? What happens if the user starts deleting markers or keyframes?

The much better solution is to direct the user how to move the positions of the keyframes. Creating an ease, cubic or exponential curves between linear keyframes is still a bit of work, but you can cut out the whole error checking side of things.

by
by
by
by
by
by