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

    Update tag

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 124 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

      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?

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