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

    Previous values in Dialog's Command

    SDK Help
    0
    2
    195
    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 17/06/2016 at 01:49, xxxxxxxx wrote:

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

      ---------
      Hello.

      I have a GeDialog subclass that reimplements the Command method.
      Whenever The command is called, I get the new parameter values.
      How can i also get the previous ones ?

      The reason why I need this is because I have a combo box that when switched, some buttons have to switch their images. I want to avoid switching these images if the same combo box value has been selected twice in a row.

      So I want to check "If  new value is not the same as previous, switch images".

      Thank you for your time.

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

        On 20/06/2016 at 06:13, xxxxxxxx wrote:

        Hi,
        the command message is sent after the values have been changed. So there's no built in way to get the last/old value. Instead you will have to store the old values yourself.

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