Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login
    The Maxon SDK Team is currently short staffed due to the winter holidays. No forum support is being provided between 15/12/2025 and 5/1/2026. For details see Maxon SDK 2025 Winter Holidays.

    Getting to custom channel data?

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 121 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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);  
      }
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post