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?
Solved Detect if inside the Material Editor
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
MAXON SDK Specialist
developers.maxon.net