Update tag



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

    On 05/11/2012 at 05:17, xxxxxxxx wrote:

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

    ---------
    Hi,

    A part of Command method in GeDialog

      
      
    Protectiontag = BaseTag::Alloc(Tprotection);  
      
    // (Get/Set Parameter doesn't work)  
    // only work with GetDataInstance or SetData  
      
    PROTECTION_bc = Protectiontag->GetDataInstance();  
    PROTECTION_bc->SetLong(PROTECTION_P,PROTECTION_LIMIT);  
      
    PROTECTION_bc->SetReal(PROTECTION_P_MIN_X,100.0);  
    PROTECTION_bc->SetReal(PROTECTION_P_MAX_X,200.0);  
      
      
    obj->InsertTag(Protectiontag);  
    EventAdd();  
      
    // Isn't work  
    Protectiontag->SetDirty(DIRTYFLAGS_DATA);  
      
    // Try also  
    Protectiontag->Message(MSG_UPDATE);  
      
    

    GUI of Protection tag's parameters change all fine.
    But, when I try to move obj, still Locked.

    It seem to be tag's parameter state still Real(0)[Default value] internally.

    If click PROTECTION_P_X(Bool) then work fine.

    What message I sent to tag?


Log in to reply