In my first Blender script, I'm asking how can I control the slider value with min and max values without using FloatProperty.
box1 = layout.box() box1.label("Span (Z) profiles positions:") box1.prop(obj, "location", index = 2, text = "Span")
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community
After looking at the documentation, I do not think there is a built-in option for an object's location (some other Blender values may be, but you could check on Blender's API docs). It would be best to use a FloatProperty or FloatVectorProperty. You could use a setter so it updates the object's location whenever the value changes, but that would also require some way to keep track of the object for the property.