Modifying scripts
Yeah. Some of these scripts are just meant to be examples for people to learn from rather than useful in their own right. I need to add a simple way to copy the built in scripts to the user's Open Brush folder for further editing.
Could benefit by the ability to set distance between strokestry this one. it should behave the same as the 4 way mirror in Experimental Mode. It's a good script to learn from as it's so simple.
Settings = {
space="widget"
}
Widgets = {
copies={label="Number of copies", type="int", min=0, max=36, default=4},
hueShift={label="Hue Shift", type="float", min=0, max=1, default=0}
}
function Main()
pointers = {}
Colors = {}
theta = 360.0 / copies
for i = 1, copies - 1 do
table.insert(pointers, {position={0, 0, -i/4.0}, rotation={0, i * theta, 0}})
if hueShift > 0 then
newColor = brush.lastColorPicked;
table.insert(Colors, color.newColor)
end
end
return pointers
endfunction Main()
copies = 12
pointers = {}
theta = 360.0 / copies
for i = 1, copies - 1 do
table.insert(pointers, {position={0, 0, 0}, rotation={0, i * theta, 0}})
end
return pointers
end