Registered: 1522501260 Posts: 16
Reply with quote #1
I have tried making a small number of filters that use there own custom brushes. But these filters have two big problems.
1) They are not very 'export friendly' There is nothing stopping me from sharing these filter/brush combo's . The difficulty comes at the end-users' end where, after installing the combo they would then need to go into the filter and edit the paint_select_brush Artisetname because I have no idea how they have set-up there custom brush directory (if that's the right word). 2) Because the filter and the brush are stored separately within TB, it is quite easy for them to become 'detached' , one only has to reorganize ones collection of custom brushes....Or do what I did (twice!) back-up the filters but not the brushes. So, would it be possible to have some way of storing custom brushes within the script filter? that way they can never get separated. Bishka
Registered: 1499208671 Posts: 220
Reply with quote #2
Distributing the entire ArtSet in addition to the script may be the best solution. If we were to add an ability to store a brush in a lua script it would most likely take the form of allowing a raw injection of a recorded script (macro) with the Script Brush tool. This would require some manual effort from you to separate the brush code from the recorded script. In case you don't know, when you use paint commands in a Lua script is it in fact just generating a paint session internally the same as if you used the Script Brush tool for then playing it back. Therefore if some extension to the Lua commands were added to allow injecting the brush codes you would be pointing to brush data such as:
BrushSettings Pencils Graphite pencil 2 68 0 255 80 100 8.0 1 255 255 255 68 0 255 154 0 0 126 126 126 Cor Dab Soft combo 1 0 Smooth Stroke combo 3 0 Bld darken combo 2 0 Cor Dabit Len combo 0 0 Size Max combo 1 6 Size Min combo 0 2 Cor Prime Clr combo 9 9 Cor Bld Pri Clr combo 9 2 No effect flat 0 0 No effect flat 0 0 No effect combo 0 0 No effect combo 0 0 No effect combo 2 9 No effect combo 0 0 No effect flat 0 0 No effect flat 0 0 No effect flat 0 0 No effect flat 0 0 No effect flat 0 0 No effect flat 0 0 No effect combo 0 0 No effect combo 0 0 No effect combo 0 0 No effect combo 0 0 No effect combo 0 0 No effect combo 0 0 No effect combo 0 0 No effect combo 0 0 1 0 1 241 271 240 89 Pro Colored Pencil (2015) I still favor the simpler brush select method that we currently have. Ken