Solved Find BaseMaterial that owns a BaseShader?

Hi,

I have the pointer to a BaseShader in my scene. Now I'd like to get the pointer to the BaseMaterial that holds the shader. How can I do that?

Cheers,
Frank

www.frankwilleke.de
Only asking personal code questions here.

GetMain() should do the trick

Oh, never noticed that. Thanks, I'll try that! 🙂

www.frankwilleke.de
Only asking personal code questions here.

hi,

Confirmed, thanks @mp5gosu.

That also work if the shader is inside another shader.

Cheers,
Manuel

MAXON SDK Specialist

MAXON Registered Developer