lomax 0 Report post Posted September 19, 2008 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 Quote Share this post Link to post Share on other sites
graymachine 0 Report post Posted September 19, 2008 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 Quote Share this post Link to post Share on other sites
lomax 0 Report post Posted September 19, 2008 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. Quote Share this post Link to post Share on other sites
graymachine 0 Report post Posted September 19, 2008 I set it up the way I am interpreting it, and it seems to work. I must not be following correctly. Can you post the project? Quote Share this post Link to post Share on other sites
lomax 0 Report post Posted September 20, 2008 (edited) 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 September 20, 2008 by lomax Quote Share this post Link to post Share on other sites
graymachine 0 Report post Posted September 20, 2008 I guess I had made the assumption that you needed Z as well, which is why you were using toComp. Glad it worked it out! Quote Share this post Link to post Share on other sites