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

    << Multiple Values>> [SOLVED]

    SDK Help
    0
    3
    301
    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 23/09/2015 at 08:28, xxxxxxxx wrote:

      [USERFORM][p]User Information:[/p]Cinema 4D Version:   16 
      Platform:    Mac  ;  
      Language(s) :     C++  ;   
      [p]---------[/p][/USERFORM] Hi, I was wondering how you would go and make a parameter in a GeDialog be listed as "<<Multiple Values>>"  when it is told multiple conflicting values.

      In my case I have a GeDialog parameter that references a value in the currently selected material, if multiple materials are selected than I want to display "<<Multiple Values>>"  if the values aren't equal.  I don't really know where to start, if it's a Message or Command, any advice? And thanks for any help!

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

        On 24/09/2015 at 02:59, xxxxxxxx wrote:

        Hello,

        the concept that a selection of parameters may or may not have the same value is called TriState. You can easily calculate that TriState using the TriState class. Then you can hand over that TriState object to your dialog using the TriState Set functions like SetFloat() etc.

        best wishes,
        Sebastian

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

          On 02/10/2015 at 12:18, xxxxxxxx wrote:

          Thanks!  Exactly what I was looking for.

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