EditNumber fields

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 19/01/2005 at 14:05, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   9 
Platform:   Windows  ;   
Language(s) :   C.O.F.F.E.E  ;

---------
Hi,

Having added an EditNumber field to my plugin layout, I decided to set the max and min values with:

  
SetFloat(310014, 20, 1, 500, 1);  

When running the plugin, If I try to enter values greater than 500, I receive a dialog with a warning that states I should enter a values less than 500 or greater or equal to 1, so far so good, but the plugin still runs with the wrong value and crashes Cinema. Ist there a way to clamp values in an EditNumber field by creation?

Thanks

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 19/01/2005 at 16:59, xxxxxxxx wrote:

I don't know about COFFEE, but the C++ SDK does clamp the values when you GetLong() or GetReal() the value.

Otherwise, it is a complex task to monitor the numeric entry key by key and check and clamp. It gets nontrivial.

Robert

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 20/01/2005 at 08:53, xxxxxxxx wrote:

Hmm, is this a bug? Ideas anyone?