It's my understanding it has to be tied to a specific effect property, but I can't confirm right now. However there is a plugin / scripting language called Hyle that can do this, it's actually quite amazing and worth a look. I mainly use it for easily editable dynamic project templates but it's so much more powerful than that. I did get it on sale for $40 so it may be a bit expensive for this one task, but the workflow optimizations alone are worth it IMO