getclass(tag)

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

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);  
    }
    
    
    

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 ?

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.

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.