1 person found this helpful
To my knowledge, lights in a nested 3D comp are useless. My understanding is that lights only work in the main comp.
Lights will only light up objects in a pre-comp with collapse transformations turned off. This also means that the current comp's camera will not effect the objects in the pre-comp.
Moral of the story, keep all your lights in the main comp unless there's a really good reason to pre-compose them. Your scenario won't work.
As to tying an expression from one comp to another that's easy. Just name the comp in the expression. For example, to tie the position of a lights point of interest to the position in Main Comp of a layer in a Pre-comp 01 you'd use this expression:
comp("Pre-comp 1").layer("layer 01").position
That's all there is to it.
I love it when you dao that, Rick.
thanks, boys. Back in a few hours after I try to make Rick's expression work. Comparing Rick's syntax and mine, I'm not sure what I did wrong but the result was an expressions error. I shall try cut and paste.
This is easiest to do by splitting the timelines, locking the comp window, then using the pickwhip. You can also do this by locking the ECW window.
Here's a movie:
Shoot, Rick, you make all this stuff look so easy. Loved the movie, helped a lot, even for a guy who knows how to do that. Could hear your mouse clicks.
Like so many others, I am in your debt.
This took much longer than I thought it would but it was great fun. I had to add some offset to the expression using three numbers separated by comas in parentheses and had to keep moving back and forth between the comps and adding some orientation angle and moving the lights forward and backwards to get the rightr combination of light spread without too much cone angle.
I wonder how much of this I'll remember on the next weirdly convoluted project.
Message was edited by: bogiesan
Save an animation preset for the project. I keep a library of hundreds of them.