THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/02/2004 at 00:29, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.207
Platform: Windows ;
Language(s) : C++ ;
---------
I wrote my own object, use a own shader, and the texture tag to connect them. My problem is, that I need to change some specific things in the object according to the attached shader, for example I need to change the objects size to adjust it to the size of a texture which is loaded within my shader. If I drop my shader onto my object, my objects receives a MSG_CHANGE. When I get this message, I look for attached tags with GetTag, but this only returns a null pointer, the tag is not completely attached to the object at this moment but only a bit later. Later I can look for the tag, get the shader, get the size and adjust my object, but I have to start this manually. Would be nice if my object could do this automatically when the tag is attached to the object, but only the MSG_CHANGE and no more messages are sent. MSG_CHANGE indicates that any object data has been changed....which object data has changed??? You see any solution for my problem?