Copy link to clipboard
Copied
Hi,
I've created two CC Spheres "A" for Moon and "B" for Sun. I want to keep "Light Direction" value of moon as per the position of Sun. Whereever the Sun is, the "Light Direction" Value should automatically adjusted and Light Direction should be towards the Sun. How can I do that, Please guide me.
Regards,
Shakeel
Look up good old "targeting expressions" using Math.atan() based on the posuitional differences of the two spheres. here's an example that took five seconds to find on Google:
Mylenium
Copy link to clipboard
Copied
Look up good old "targeting expressions" using Math.atan() based on the posuitional differences of the two spheres. here's an example that took five seconds to find on Google:
Mylenium
Copy link to clipboard
Copied
Thanks for your reply but I was looking for a solution that is easy for newbies like me.
Copy link to clipboard
Copied
What Mylenium has suggested is going to be as easy as it gets. You already have a grasp of what you want to do. All you need to do is to paste the provided Expression into the correct property.
Copy link to clipboard
Copied
Not trying to be snarky here, but manually keyframing is often the "easy" option.
Making things dynamic/responsive in AE takes a little work and a little code.
The other "easy" option is paying someone else to do the work for you.
If you're interested in this kind of functionality, I'd recommend learning a bit about expressions. With even an introductory understanding of them, you can start coming up with all kinds of ways to apply them in your daily work.
Good luck!
Copy link to clipboard
Copied
I'll act upon your advice. Thanks.