Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
On 01/04/2013 at 04:51, xxxxxxxx wrote:
User Information: Cinema 4D Version: 14.034 Platform: Windows ; Language(s) : C++ ;
--------- Hello,
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(); if(dd) { DescID dscID; const BaseContainer *bc; void *dscHnd = dd->BrowseInit(); while(dd->BrowseGetNext(dscHnd, &dscID, &bc)) { if( dscID[1].dtype == DA_ALIASLINK ) //DA_ALIASLINK -> BaseLink { // how to access the channel object ? BaseChannel* chan = ? } } dd->BrowseFree(dscHnd); }