Kinsley Turner wrote:
Aaron Spike wrote:
Wavy won't do all of those, but an extension that will would be simple to write.
Is there some doco on the plugin format?
I wrote my own plugin (hacked wavy to do sawtooth), but couldn't nut-out the packing of the (resultant?) points.
What's the go with the 'M' and 'C' points?
Starting with an empty array, I appended a ['M',[0,0]] then my sawtooth points ['C', [0,0],[x/3,height],[2x/3,0],[x,height]] for N wavelengts of sawtooths. (where x == width/wavelengths).
User interface stuff ran ok, but the script crashed when it was unpacking my point array in simplepath.py:167 => return "".join([cmd + " ".join([str(p) for p in parameters]) for cmd, params in a]) => "Unpack of wrong size"
(I keyed in that error message, so it may have typos.)
Can someone point me to some doco ?
Sorry there isn't any documentation. But I'd be happy to answer any questions you have. The format you are working with very simply mimics the structure of path data in SVG. Each list for each command is in the form [command, parameters]. So for a moveto it would be like ['M',[x,y]]. And for curveto like ['C',[x1,y1,x2,y2,x,y]]. But for a saw tooth wave I would expect you to use a lineto not curveto. Linetos would be in the form ['L',[x,y]].
This is from memory without looking at simplepath.py again, so I appoligise if I made an error.
Aaron Spike