On 22/02/2013 at 13:15, xxxxxxxx wrote:
Cinema 4D Version: 14
Platform: Windows ;
Language(s) : C++ ;
I'm pretty new to the SDK, so if this question is really daft/simple please go easy on me ;)
OK, is it possible to change a texture bound to a channel in a material using the C++ SDK?
I can currently:
- Get hold of the material I want to change
- Check the channel is in use (channel state)
- Get the BaseChannel pointer and use this to get the BaseContainer
- Query the container for the BASECHANNEL_TEXTURE to see the filename (though only the name. Not that it's important, but can you actually get the full path?)
But where do I go from here to replace the texture with another from disk?
Any help would be greatly appreciated!