Using AddEditNumberArrows



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



  • 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


Log in to reply