Engine-Dependent Material

This setup provides a proof-of-concept material shader that detects the active render engine and adjusts accordingly. It uses a Python script to create custom scene properties that identify whether Cycles or Eevee is currently enabled.

The download includes a .blend file containing an example material alongside the Python script required to generate the necessary view layer properties. The script can be executed directly from the Text Editor or installed as an add-on. When installed as an add-on, the script runs automatically at startup, ensuring the custom properties persist across sessions.