[Bf-committers] custom modifier UI default values not working

Ian Johnson enjalot at gmail.com
Mon Aug 9 01:02:57 CEST 2010

Hi all,

I made a custom modifier like so:

and I've added a few more options that I display, but the problem is I can't
get the default values to show up in the python interface. Other than that
everything works fine. here is an example of setting the defaults:
prop= RNA_def_property(srna, "num", PROP_INT, PROP_NONE);
    RNA_def_property_int_sdna(prop, NULL, "num");
    RNA_def_property_int_default(prop, 100000);
    RNA_def_property_ui_range(prop, 1, 20000000, 10, 0);
    RNA_def_property_ui_text(prop, "Number", "Number of particles");
    RNA_def_property_update(prop, 0, "rna_Modifier_update");

anyone know what I could be missing?

Ian Johnson

More information about the Bf-committers mailing list