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
    • Recent
    • Tags
    • Users
    • Register
    • Login

    EditNumber fields

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 312 Views
    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 Offline
      Helper
      last edited by

      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

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

        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

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

          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?

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