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
    • Login

    initiate slider fails

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 328 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 02/11/2010 at 13:06, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   12 
      Platform:      
      Language(s) :       PYTHON  ;

      ---------
      I have a working GeDialog and it is no problem to initiate the gadgets with values for example a bool: self.SetBool(GI_CheckB, GI_CheckB_read)
      but the Slider(GeDialog.AddSlider(id, flags[, initw=80][, inith=0])) makes problems.

      for example for

      print self.SetReal(GI_slider, 50.0)

      or

      print self.SetReal(GI_slider, 50)

      I get a False

      I only get True with

      print self.SetString(GI_slider, 50)

      ??

      ether way there is no posibility to use the slider once it got a value. It freezes at -1e+308

      am I mistaken, or is something wrong 🙂

      thanks a lot
      Jops

      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 02/11/2010 at 14:00, xxxxxxxx wrote:

        Hi Jops, can you please send the bug report to maxon via the bug reporter?

        Cheers, Sebastian

        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 03/11/2010 at 01:45, xxxxxxxx wrote:

          Hi Sebastian

          thanks for your reply

          so you could reproduce it?

          As I am still new to programing there is the posibility that I just did something wrong?!

          Jops

          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 10/11/2010 at 02:36, xxxxxxxx wrote:

            Have news from maxon.
            this is a Bug and will be fixed in the next service update.
            so this work around is just needed for R12.028.

            class TestDialog(gui.GeDialog) :

            SLIDER_1 = 1000

            def CreateLayout(self) :
                   #initw is 0 on default, must be >0
                   self.AddSlider(TestDialog.SLIDER_1, c4d.BFH_SCALEFIT, initw=90, inith=0)
                   return True
               
                
                def InitValues(self) :
                   #please pass min, max, step
                   print self.SetReal(TestDialog.SLIDER_1, value=50.0, min=0, max=1000, step=0.1)
                   return True

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