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 Parameter Values [SOLVED]

    SDK Help
    0
    5
    367
    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
      Helper
      last edited by

      On 26/08/2015 at 00:13, xxxxxxxx wrote:

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

      ---------
      Greetings !

      I have created a Tag Plugin and added a button that is supposed to reset the description parameters to their initial values. It doesn't work though. The button is handled in Message in MSG_DESCRIPTION_COMMAND.
      Do i have to add any update method other that setParameter ?
      I tried to find any similar example but i couldn't. Is there any ?

      Thank you for your time.

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

        On 26/08/2015 at 01:35, xxxxxxxx wrote:

        Hello,

        could you share some code showing how exactly you are trying to reset the parameters?

        Best wishes,
        Sebastian

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

          On 26/08/2015 at 07:26, xxxxxxxx wrote:

          Greetings !

          I solved it using:
          base_material->Message(MSG_UPDATE);
          base_material->Update(TRUE, FALSE);

          I dont know the difference though.
          It seems it works with both of them.

          Thank you for your time.

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

            On 26/08/2015 at 08:07, xxxxxxxx wrote:

            Hi,

            Shouldn't EventAdd() just be enough?

            https://developers.maxon.net/docs/cpp/2023_2/c4d__general_8h.html#a47d8b6918f07e855bcf82a6d671569ad

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

              On 26/08/2015 at 13:33, xxxxxxxx wrote:

              base_material->Message(MSG_UPDATE);
              EventAdd();
              

              should always (most of the time) do the trick.

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