On 29/03/2016 at 16:00, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R15+
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
Note: this is for a third-party plugin under NDA utilizing other party's plugins so code examples may be limited:
So, I have a Vray Light tag with a VrayShader in the AreaLight 'Light Rectangle' Texture slot. The texture image file on the shader can be easily updated using our plugin and the view and renderer respond to this change. The VrayShader itself will not update its Texture Preview image at all (which leaves the preview on the tag incorrect as well). Even a button simulation (Reload Image...) will not do it (and I am positive that the button is being clicked with MSG_DESCRIPTION_COMMAND). A real click on the button works. Changing anything in the shader works if done physically (for real). In code, nothing has worked.
I have used Message(), SetDirty(), SetHDirty(), EventAdd(), MultiMessage(), shader->Edit() to make it active in the A.M. (maybe help, no). I have Remove()'d the shader and reinserted it into the tag. Nothing gets the shader preview to update beyond physical interaction with the shader itself.
Any ideas beyond the many that have been tried so far?