Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Migrating from v7.3

    SDK Help
    0
    3
    278
    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
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 27/07/2004 at 14:51, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.5 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      It looks like I hae to port my plugin to v8.5 for it to function and am running into various things that are now missing and need to be translated.  Any help with the following would be appreciated.
      1. GetPluginID()

          
          
            
           while( ptag = (PluginTag* )(op->GetTag(Tplugin, ptagi++)) )  
           {  
            if( ptag->GetPluginID() == GTAG_PLUGID )  
          ...  
          
      

      ...I need to know how to get a PluginTag's ID.  This function is no longer available in v8.5 of the SDk.
      2. POLYSELECTIONTAG_NAME

          
          
            
           while( stag = (SelectionTag* )(op->GetTag(Tpolygonselection, stagi++)) )  
           {  
            String selName = stag->GetData().GetString(POLYSELECTIONTAG_NAME);  
          ...  
          
      

      ...I need to know how to get the 'name' of a SelectionTag.
      3. TEXTURETAG_RESTRICTION

          
          
            
            while( ttag = (TextureTag* )(op->GetTag(Ttexture, ttagi++)) )  
            {  
             // see if there's a restricted selection associated with this texture...  
             String restr = ttag->GetData().GetString(TEXTURETAG_RESTRICTION);  
          ...  
          
      

      ...I need to get the 'restrict to selection' string, if it exists within a TextureTag.
      4. BASECHANNEL_COLOR / BASECHANNEL_BRIGHTNESS
      ...was changed to "BASECHANNEL_COLOR_EX" and "BASECHANNEL_BRIGHTNESS_EX".  Which leads me to believe that something about it's usage changed as well (note that "BASECHANNEL_TEXTURE" etc did NOT change), though I don't see anything obvious.  Can I just change my defines?
      5. Tpolyselection -> Tpolygonselection
      ...I assume this name change is purely cosmetic (?).
       
      I guess that's all for now 😉
      Thanks,
      - Keith

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 28/07/2004 at 09:19, xxxxxxxx wrote:

        I guess I'll try to propose my own guesses while I wait...
        1. if( ptag->GetPluginID() == GTAG_PLUGID )
        becomes
        if( ptag->GetType() == GTAG_PLUGID )  ?
        2. String selName = stag->GetData().GetString(POLYSELECTIONTAG_NAME);
        becomes
        String selName = stag->GetName();  ?
        3. I think this one may be working as-is...
        4. ?
        5. ?

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 28/07/2004 at 09:55, xxxxxxxx wrote:

          I finally got everything to compile and my assumptions above seem to be correct.
          I think my last remaining issue has to do with displaying bitmaps in a dialog userarea, but I'll start a new thread for that.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post