Hiding Brushes with Brush Tags
Currently the brush panel is cluttered with a large number of brushes and is likely to grow larger in the future. As a first step toward better organizing them, this feature serves to classify each brush with a list of tags and a couple of filtering options.
Via OpenBrush.cfg (UserConfig), the brushes that show up in the panel can be limited by using the following options:
  1. 1.
    IncludeTags - specifies all of the brushes that may be included included in the panel
  2. 2.
    ExcludeTags - specifies all of the brush that must be excluded (even if they are also in "include").
To test, try the following:
  • Declare include { "User": { }, "Brushes": { "IncludeTags": ["classroom"], }, "Video": { }, "Flags": { }, "Export": { }, } Result should be only a single page of brushes that have been tagged with "classroom".
  • Add a new tag called "test" to a few brush descriptors that also have "classroom" and then declare inlude and exclude { "User": { }, "Brushes": { "IncludeTags": ["classroom"], "ExcludeTags": ["test"] }, "Video": { }, "Flags": { }, "Export": { }, } Result should be only a single page of brushes that have been tagged with "classroom" minus the brush tagged with "test".
  • Exclude only case { "User": { }, "Brushes": { "ExcludeTags": ["classroom"] }, "Video": { }, "Flags": { }, "Export": { }, } Result should be all of the brushes minus those tagged with classroom.
In addition, tags can be added and removed. Here is an example that includes this usage:
1
{
2
"User": {
3
},
4
"Brushes": {
5
"AddTagsToBrushes": {
6
"Rainbow": ["classroom", "bedazzling"],
7
"Plasma": ["classroom", "bedazzling"],
8
"testBrushNotFound": ["clasroom"]
9
},
10
"RemoveTagsFromBrushes": {
11
"Rainbow": ["default", "test"],
12
"Plasma": ["default", "test"],
13
"testBrushNotFound": ["clasroom"]
14
},
15
"IncludeTags": ["classroom"],
16
"ExcludeTags": ["test"]
17
},
18
"Video": {
19
},
20
"Flags": {
21
},
22
"Export": {
23
},
24
}
Copied!
Export as PDF
Copy link
Edit on GitHub