[In progress] Is it possible to update a layer's properties depends on it's level of container?

For example:

  1. (Container #1 (Container #2 (`Targeted Layer`.fillcolor=red)))

  2. (Container #1 (`Targeted Layer`.fillcolor=blue)(Container #2 ))

Appreciated if any advice. Thanks!