Ok, I have moved to another footage now so I can’t really show you how it was set up but since I haven’t solved the problem I might need advice for future similar settings.
I’ll try to describe how it looked.
I have a composite scene, whereby a background layer interacts with a foreground layer. This foreground layer needs to match the changing light of my background. Imagine street lights and color which need to “spill” on my added foreground. (in my case a shoe 🙂 ).
So, for e believable composite in photoshop I would create adjustment layers which would be masked using soft brushes. affecting the foreground until it matches the scene and so on. I would simply paint brush on the adj layer layer mask.
In AE, as I understand, it’s tricky as you can’t paintbrush on an adjustment layer plus, even if you could you can do this only by double clicking it which shoes you only that layer’s alpa channel.
So, your idea of duplicating the to be corrected layer and putting it above the ADJ layer and using it as its TRK Mat is perfect.. BUT being it a trkMat you can’t see, while you paint, how the adjustment layer will look as the layer you are painting on is in the main window (don’t remember how it’s called) of AE isolating the view of the layer from the global composition.
If I only knew the right names of the different panels of AE I could explain myself a bit better and for this a apologize profoundly. As said I’m a pro-photog and know my way in PSD but not yet in AE.