Reference attribute to other dynamic component

Hi,

I have a document which has a dynamic component with attribute color.

When I place another dynamic component in inside the existing dynamic component can I use the value color to use it in this placed dynamic component and sub-components?

Thanks in advance.

I also want the placed dynamic component to be placed at z=0

I already figured it out. I hade to save my components different.

Using the parent in the attribute is working fine.