Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Using AddEditNumberArrows

    Cinema 4D SDK
    python
    2
    2
    375
    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.
    • KantroninK
      Kantronin
      last edited by Manuel

      Hi,

      I am using a datafield of type AddEditNumberArrows, and I want to have increase or decresase of 0.1

      I defined it like this:

      self.AddEditNumberArrows(datafield_displacement,c4d.BFH_LEFT,70,10) 
      

      And I initialized it in the following way:

      self.SetFloat(datafield_displacement,0.1,min=0.0)
      

      Currently, the values of increments or decrementations are egal to 1.

      How to have 0.1 ?

      1 Reply Last reply Reply Quote 0
      • ManuelM
        Manuel
        last edited by

        hello,

        you have to use the step parameter as showned in the documentation here

        self.SetFloat(datafield_displacement, 1.0, min=0.0, step=0.1)
        

        Cheers,
        Manuel

        MAXON SDK Specialist

        MAXON Registered Developer

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