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!
On 24/09/2015 at 02:59, xxxxxxxx wrote:
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.
On 02/10/2015 at 12:18, xxxxxxxx wrote:
Thanks! Exactly what I was looking for.