Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_gpencil_modifier.c
| Show First 20 Lines • Show All 483 Lines • ▼ Show 20 Lines | static void rna_def_modifier_gpencilnoise(BlenderRNA *brna) | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "random", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "random", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_NOISE_USE_RANDOM); | RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_NOISE_USE_RANDOM); | ||||
| RNA_def_property_ui_text(prop, "Random", "Use random values over time"); | RNA_def_property_ui_text(prop, "Random", "Use random values over time"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "seed", PROP_INT, PROP_UNSIGNED); | prop = RNA_def_property(srna, "seed", PROP_INT, PROP_UNSIGNED); | ||||
| RNA_def_property_ui_text(prop, "Seed", "Random seed"); | RNA_def_property_ui_text(prop, "Noise Seed", "Random seed"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "noise_scale", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "noise_scale", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "noise_scale"); | RNA_def_property_float_sdna(prop, NULL, "noise_scale"); | ||||
| RNA_def_property_range(prop, 0.0, 1.0); | RNA_def_property_range(prop, 0.0, 1.0); | ||||
| RNA_def_property_ui_text(prop, "Noise Scale", "Scale the noise frequency"); | RNA_def_property_ui_text(prop, "Noise Scale", "Scale the noise frequency"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "noise_offset", PROP_FLOAT, PROP_FACTOR); | |||||
| RNA_def_property_float_sdna(prop, NULL, "noise_offset"); | |||||
| RNA_def_property_range(prop, 0.0, FLT_MAX); | |||||
| RNA_def_property_ui_range(prop, 0.0, 100.0, 0.1, 3); | |||||
| RNA_def_property_ui_text(prop, "Noise Offset", "Offset the noise along the strokes"); | |||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | |||||
| prop = RNA_def_property(srna, "use_custom_curve", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_custom_curve", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_NOISE_CUSTOM_CURVE); | RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_NOISE_CUSTOM_CURVE); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Custom Curve", "Use a custom curve to define noise effect along the strokes"); | prop, "Custom Curve", "Use a custom curve to define noise effect along the strokes"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "curve", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "curve", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "curve_intensity"); | RNA_def_property_pointer_sdna(prop, NULL, "curve_intensity"); | ||||
| ▲ Show 20 Lines • Show All 1,869 Lines • Show Last 20 Lines | |||||