For newer versions of Cinema 4D, I would suggest using this mini example:
https://projectfiles.maxon.net/Cineversity_Forum_Support/2025_PROJECTS_DRS/20251023_CV4_2026_drs_25_ANpl_01.zip
Please note that the Plane Objects have Integer User Data. This data is used to switch the Layer in the PS file. (The Entry in the User Data Node must match the name of the object User Data. The Layers are selected first in the Tex Node.
BTW, the Ps file is the one used in the Download, but I included it here as well.

Cheer