[SOLVED] Change shader parameters per-scene

Hi,

I was wondering if in Blender 4.5 is possible to get the Scene ID within shader nodes (and maybe geometry nodes)… when I finish modeling something I like to make some scenes (linked copies) with different active cameras and I would like to be able to know in which scene I am within shader nodes to change properties of the objects, like the emission of light bulbs which I would enable only in the “night scenes” and shutdown in other… I mean having something like “get scene ID and use it as input for a switch node that determines the shader of the object to use”.

If it is not possible how do you implement this? Actually I am duplicating objects to change materials or other stuff and then hide/unhide them in each scene to achieve this result.

Thanks in advance for any help.

UPDATE: I’m away from my laptop but maybe an idea could be using frame number as ID to change parameters in shader nodes by setting a value node with “#FRAME” (if I remember this is the way to retrieve the frame number but I don’t know if it is available in shader nodes) and using that value node as input to an index switch node that determines which shader to use for a material (the frame number is the index input, the shader for frame X is the input item X of the index switch node)… then when you want to render scene X you move to frame X and so on… is this possible? Is this a stupid idea?

UPDATE 01/09/2025: Solution added in comment below using scene attributes.