-
Parenting across compositions
Hi,
I have 2 compositions using cut-out animation. One composition [Main] contains the background with special effects like lens flares. The second composition [Precomp Man] contains a man swinging a sword. [Precomp Man] sits in [Main]. I’d like the flares in [Main] to be parented to the sword which is in [Precomp Man]. I can’t put the flares in [Precomp Man] because I need to put special effects on the man (he is made up of pieces).I have already tried using the code below on the lens flare in [Main], but it doesn’t do anything because my sword’s position isn’t actually moving (it’s parented to the hand, which is parented to the arm etc).
I think that I have to make the sword’s position and rotation an absolute value that can be read by the lens flare, but I don’t really know how.
Any help would be appreciated 🙂
comp("Precomp Man").layer("Sword blade").transform.position