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

    How to change values in the attribute man

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 433 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 18/07/2008 at 06:10, xxxxxxxx wrote:

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

      ---------
      Hi.
      Can somebody please tell me, how I can change the values in the attribut manager programmatically?

      This doesn't work:

      BaseContainer *data = node->GetDocument()->GetDataInstance();

      data->SetReal(ASTANSATZ,0);

      node->Message(MSG_UPDATE);

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

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

        On 18/07/2008 at 06:14, xxxxxxxx wrote:

        Well, obviously. You are getting the BaseContainer of the document not the node! Try:

        BaseContainer* data = node->GetDataInstance();

        instead. 🙂

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

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

          On 18/07/2008 at 06:38, xxxxxxxx wrote:

          Hm. There is no function GetDataInstance() in node. By the way this should happen in the Message()-function.

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

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

            On 18/07/2008 at 07:30, xxxxxxxx wrote:

            Sorry, you have to up-cast the node, for instance:

            BaseContainer* bc = ((BaseObject* )node)->GetDataInstance();

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

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

              On 18/07/2008 at 07:52, xxxxxxxx wrote:

              Works fine. Thank you!

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