[Solve] frozen property ?

i added a new prop

bpy.types.Scene.ncell = IntProperty(
name=“Number of cells”,
soft_min=4,
max= 0,
description=“Enter Number of cells”,
default=4)

but when i run the panel
it is frozen and i cannot change it and it has a value of 0 !

any idea why this is doing this ?

thanks

Perhaps it is because max is 0?

your right found it meanwhile
my mistake there was a 10 before and not certain why the 1 vanish !

strange i change max = 10

it is still not talking the default value !

thanks

Seems fine?

import bpy


class HelloWorldPanel(bpy.types.Panel):
    """Creates a Panel in the Object properties window"""
    bl_label = "Hello World Panel"
    bl_idname = "OBJECT_PT_hello"
    bl_space_type = 'PROPERTIES'
    bl_region_type = 'WINDOW'
    bl_context = "object"

    def draw(self, context):
        layout = self.layout

        layout.prop(context.scene, "ncell")


def register():
    bpy.utils.register_class(HelloWorldPanel)
    
    bpy.types.Scene.ncell = bpy.props.IntProperty(
        name="Number of cells",
        description="Enter Number of cells",
        soft_min=4,
        min=0,
        max=10,
        default=4
    )


def unregister():
    bpy.utils.unregister_class(HelloWorldPanel)
    del bpy.types.Scene.ncell


if __name__ == "__main__":
    register()