On 01/04/2013 at 04:51, xxxxxxxx wrote:
Cinema 4D Version: 14.034
Platform: Windows ;
Language(s) : C++ ;
I am trying to access custom channels and am stuck after getting to the user data of the material.
How do I get to the BaseChannel object which I presume is of type DA_ALIASLINK?
BaseTag* bt = obj->GetTag( Ttexture, 0 );
BaseMaterial* mat = (TextureTag * )bt->GetMaterial( true );
//trying to access custom channels
DynamicDescription *dd = mat->GetDynamicDescription();
const BaseContainer *bc;
void *dscHnd = dd->BrowseInit();
while(dd->BrowseGetNext(dscHnd, &dscID, &bc))
if( dscID.dtype == DA_ALIASLINK ) //DA_ALIASLINK -> BaseLink
// how to access the channel object ?
BaseChannel* chan = ?