On 08/09/2010 01:02 AM, Ian Johnson wrote: > Hi all, > > I made a custom modifier like so: > http://enja.org/2010/05/24/blender-creating-a-custom-modifier/ > > 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? > > the default values are set in the MOD_enja.c file method initData.
regards, Jeroen Bakker. _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
