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

    Couldn't disable editing to user tag

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 130 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 06/08/2009 at 18:00, xxxxxxxx wrote:

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

      ---------
      I have the following piece of code that currently wouldn't disable change to the user tag I added to objects:

      DynamicDescription* dd = m_cameraPtr->GetDynamicDescription();

      BaseContainer m_tag;
      LONG datatype = DTYPE_REAL;
      dd->FillDefaultContainer(m_tag, datatype, "mytag");
      // ??? this doesn't really disable change to the tag
      m_tag.SetParameter(DESC_EDITABLE, FALSE);
      m_tag_ID = dd->Alloc(canvasTag);
      m_cameraPtr->SetParameter(m_tag_ID, m_tag, 0);

      What's wrong with it?

      Another question about the user tag BTW: since I use Alloc() function to get the descID, I assume that I might not get the same ID every time. So the only constant here is the name of the user tag. But from the DynamicDescription class help doc, I couldn't find a way to find a user tag by name. Is it simply not possible or there's a way to do it?

      Thanks

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