Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Parameter Options and GetDEnabling [SOLVED]

    SDK Help
    0
    5
    437
    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 01/08/2015 at 00:42, xxxxxxxx wrote:

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

      ---------
      Greetings !

      What i want to do is to create parameters that "point" to other parameters.
      I was wondering if there is an option that can do that.

      Example:

      BOOL PARAMETER1 { }
      REAL PARAMETER2 { UNIT PERCENT; MIN 0.0; MAX 100.0;  POINTS_TO PARAMETER1; }

      That way i will be able to set the enable/disable state of PARAMETER2 in GetDEnabling depending on the state of PARAMETER1.
      Relative to that, can i get these options in GetDEnabling ?

      If that's not the right way to do it, then how can i do it without having to create huge data structures.

      Thank you for your time

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

        On 01/08/2015 at 02:20, xxxxxxxx wrote:

        In GetDEnabling(), you simply get the state of PARAMETER1 to set that of PARAMETER2:

        // Enable/Disable editability
        switch (did)
        {
        	// General
        	case GREEBLER_LOWAREA:
        		return bc->GetBool(GREEBLER_LOWAREA_USE);
        ...
        
        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 03/08/2015 at 04:42, xxxxxxxx wrote:

          Hi,

          Robert is right (of course, I may add).
          You were asking for a solution in the resource file. I just want to add, that this is not possible in a resource file.

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

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

            @peterakos: Is it working for you?

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

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

              Yes it does.
              Thank you very much for your time.

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