I am wondering how to detect a change in BITMAPSHADER_FILENAME
of a BaseShader
?
Say I have a GeDialog
which lists information of the current active object.
A material was created and assigned to the object.That material has a Xbitmap
BaseShader
.
The dialog displays the filename of the bitmap by parsing the BaseMaterial
's color BaseChannel
.
If its BaseShader
is an instance of Xbitmap
it gets the BITMAPSHADER_FILENAME
parameter.
Now, when the user replaces the bitmap of the color channel with another bitmap, what trigger could be used to detect this from within the GeDialog
?
Is some kind of message sent (EVMSG_xxx)?
Edit:
I 'd like to broaden the question a little. Next to knowing how to detect a change of bitmap in a material, what would be the best way to detect a change of material? How to detect when user removes or assigns a material to a BaseObject
?