SOLVED Detect if inside the Material Editor

Is there any way to detect, inside a shader plugin, that the code is being executed to produce the Material Editor thumbnail preview or of it is being executed on an editor or Picture Viewer render?

Hi,

check RENDERFLAGS (Link). You will have listen in NodeData.Message() for them. I never did use this, but checking for RENDERFLAGS_PREVIEWRENDER sounds promising.

Cheers
zipit