Jump to content
Sign in to follow this  
lomax

[After Effects] Light Problem

Recommended Posts

Hi,

 

i just registered here ;) Seems to be a very nice place.

 

I have a problem with the position of my Light (PointLight). I have composition 4000x2250 where i place all my elements after that i changed the composition size to HDV1080 to make some camera movement and export it. I am using the CC Glass effect for BumpMapping and the Light center of CC Glass is linked to my PointLight Position via an expression with toComp. The Problem is that CC Glass uses of course the center of the texture which is 4000x2250/2 = 2000x1125 but the light uses the compsize (1440x1080/2 = 720x540). Any ideas except precomposing?

 

Thanks

Share this post


Link to post
Share on other sites
Try this... I've not had my coffee yet, so I'm not sure how robust in Z space it is:

 

aspect = width/height;
thisComp.layer("Light 1").toComp([0,0,0])*aspect

Thanks for your help!

 

Tried but its not the center. Maybe i need to explain the problem a little bit more precise ;)

 

- Center of the light is 720; 540

- Center of CC Glass is 2000; 1125

 

with your expression the CC Glass position is 1280; 960 and the light is 720; 540 (center of my composition)

 

The CC Glass "Light position" is linked to the position of my light so it creates a bumpmap effect. I need this because i want to wiggle the light a little bit. Ill try tomorrow a little bit on my own. Maybe i will come up with some solution.

Share this post


Link to post
Share on other sites

temp = thisComp.layer("PointLight.BumpMap").transform.position;
[temp[0]*((4000/720)/2), temp[1]*((2250/540)/2)]

 

Now it works! This is the expression i just came up with. When the light position is 720, 540 the CC Glass light position ist 2000, 1125. And when i move the light it is exactly where i should be! Thanks anyway for offering your help :)

 

Greets

Edited by lomax

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...