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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    getclass(tag)

    SDK Help
    0
    5
    583
    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 03/03/2003 at 02:39, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   7.3 
      Platform:      
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      I've got an Object and an attached PluginTag (e.g., the XLENT FrameWork Plugin Tag). i have written a menu plugin that goes through the tags of an object, and prints their class:

          
          
          println("tag: "+tostring(getclass(t)));
      

      But, instead of getting the valid name of the class (e.g.[Class-PluginExpressionTag], I always get [Class-BaseTag] as class. A bug ?
      Gabe Wurzer

      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 03/03/2003 at 02:51, xxxxxxxx wrote:

        Here's the code for the test tag.
        Mytag.cof

            
            
            
            
            const var MYtag_ID = 1011203;  
            var mytag_icon;
            
            
            
            
            class Mytag : ExpressionPluginTag{  
              public:    
                       Mytag();      
                       GetID();    
                       GetIcon();    
                       Edit();    
                       GetName();    
                       Execute(doc, op);    
                       GetHelpText();      
                       MultipleAllowed();    
                       DisplayAllowed();    
                       UseMenu();  
            }  
            Mytag::Mytag() { println("Mytag"); super(); }  
            Mytag::GetID() { println("GetID"); return MYtag_ID; }  
            Mytag::Edit() { println("Edit"); return TRUE; }  
            Mytag::GetName() { println("GetName"); return "My tag"; }  
            Mytag::Execute(doc, op) { println("Execute: ", time()); return TRUE; }  
            Mytag::GetHelpText() { println("GetHelpText"); return "My tag"; }  
            Mytag::MultipleAllowed()   { println("MultipleAllowed"); return TRUE; }  
            Mytag::DisplayAllowed()    { println("DisplayAllowed"); return TRUE; }  
            Mytag::GetIcon() { println("GetIcon()"); return mytag_icon; }  
            Mytag::UseMenu() { println("UseMenu"); return TRUE; }  
            main(){    
            mytag_icon = new(BaseBitmap, 24, 24);    
            mytag_icon->SetPen(vector(0.2, 0.3, 0.7));    
            mytag_icon->DrawRect(0,0,24,24);    
            println("main");    
            Register(Mytag);  
            }
            
            
            
        

        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 03/03/2003 at 03:25, xxxxxxxx wrote:

          Yep, this is a BUG, ladies & gentlemen. I tried C4D Version 7.1, and there it has no problems at all; what now ?

          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 04/03/2003 at 23:45, xxxxxxxx wrote:

            I don't think this is a bug but I'll report it anyway. In the meantime you can use BaseTag::GetType() and see if it's equal to MYtag_ID.

            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 05/03/2003 at 05:41, xxxxxxxx wrote:

              I've got confirmation that this is the intended behavior. To the outside all plugin tags look like BaseTags.

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