def __init__(self, width, length, ballSize, units): self.editor = [ DialogInt("knots", "Number of Knots", default=5, min=0, max=20), DialogFloat("rKnot", "Maximum Knot Radius", units=units, default=inchesToUnits(5.0, units), min=inchesToUnits(1.0, units), max=max(width, length)), DialogInt("seed", "Random seed", default=1, min=0, max=10000, rbutton=True), DialogInt("xLines", "Number of points/line", default=200, min=50, max=600), DialogInt("yLines", "Number of lines", default=40, min=5, max=100), DialogBreak(), DialogFloat("xOffset", "X Origin", units=units, default=0.0), DialogFloat("yOffset", "Y Origin", units=units, default=0.0), DialogFloat("width", "Width (x)", units=units, default=width), DialogFloat("length", "Length (y)", units=units, default=length), ]
def __init__(self, width, length, ballSize, units): self.editor = [ DialogFloat("maxHeight", "Maximum height", units=units, default=length * .75, min=1.0, max=length), DialogFloat("maxWind", "Maximum wind", units=units, default=inchesToUnits(1., units), min=0., max=inchesToUnits(4., units)), DialogInt("blades", "Blades of grass", default=100, min=1, max=250), DialogYesNo( "dWind", "Directional wind", ), ] self.width = width self.length = length self.thickness = inchesToUnits(1, units) self.steps = 5
def __init__(self, width, length, ballSize, units): self.editor = [ DialogFloat("majorFreq", "Major frequency", units="per rotation", default=3.0, min=0.0, max=179.0, randRange=(0.1, 20.)), DialogFloat("majorAmp", "Major amplitude", units=units, default=inchesToUnits(4.0, units), min=0.0, max=inchesToUnits(6.0, units)), DialogFloat("minorFreq", "Minor frequency mod", units="percent", default=.01, min=-0.03, max=.03), DialogFloat("minorAmp", "Minor amplitude", units="degrees", default=20.0, min=0.0, max=45.0), DialogBreak(), DialogFloat("r1", "Radius start", units=units, default=1.0, min=0.0, max=max(width, length) * .9), DialogFloat("r2", "Radius end", units=units, default=min(width, length) / 2, min=1.0, max=max(width, length) * 1.5), DialogFloat("turns", "Turns", default=20.0, min=0.1, max=80), DialogInt("angleRate", "Sample rate", units="degrees", default=5, min=1, max=10), DialogBreak(), DialogFloat("xCenter", "X Center", units=units, default=width / 2.0), DialogFloat("yCenter", "Y Center", units=units, default=length / 2.0), ]
def __init__(self, width, length, ballSize, units): self.editor = [ DialogFloat("sHeight", "Shingle Height", units=units, default=inchesToUnits(2, units), min=inchesToUnits(0.1, units), max=inchesToUnits(5, units)), DialogBreak(), DialogFloat("xOffset", "X Origin", units=units, default=0.0), DialogFloat("yOffset", "Y Origin", units=units, default=0.0), DialogFloat("width", "Width (x)", units=units, default=width), DialogFloat("length", "Length (y)", units=units, default=length), ]
def __init__(self, width, length, ballSize, units): self.width = width self.length = length self.editor = [ DialogInt("points", "Points", min=3, max=75, default=5), DialogFloat("innerRadius1", "Inner radius 1", units=units, default=inchesToUnits(3.0, units), min=1.0, max=max(width, length) / 2), DialogFloat("outerRadius1", "Outer radius 1", units=units, default=min(width, length) / 2, min=2.0, max=max(width, length) / 2), DialogFloat("innerRadius2", "Inner radius 2", units=units, default=0.0), DialogFloat("outerRadius2", "Outer radius 2", units=units, default=inchesToUnits(5.0, units)), DialogFloat("angleStart", "Starting angle", units="degrees"), DialogFloat("angleShift", "Shift angle", units="degrees", default=0.0, min=0.0, max=15.0), DialogInt("steps", "Number of stars", default=5, min=0, max=40), DialogYesNo("fitToTable", "Fit to table"), DialogBreak(), DialogFloat("xCenter", "X Center", units=units, default=width / 2.0), DialogFloat("yCenter", "Y Center", units=units, default=length / 2.0), ]
def __init__(self, width, length, ballSize, units): self.ballSize = ballSize rockSize = inchesToUnits(3, units) self.editor = [ DialogInt("rocks", "Number of rocks", default=5, min=1, max=25), DialogFloat("minRockSize", "Minimum rock size", units=units, min=inchesToUnits(.25, units), max=rockSize, default=inchesToUnits(1.0, units)), DialogFloat("maxRockSize", "Maximum rock size", units=units, min=inchesToUnits(.25, units), max=rockSize, default=inchesToUnits(1.0, units)), DialogInt("rakeSize", "Rake teeth", units="tines", min=2, max=5, default=3), DialogInt("seed", "Random Seed", default=1, min=0, max=10000, rbutton=True), DialogBreak(), DialogFloat("ballSize", "Ball size", units=units, min=.25, default=ballSize), DialogFloat("xOffset", "X Origin", units=units, default=0.0), DialogFloat("yOffset", "Y Origin", units=units, default=0.0), DialogFloat("width", "Width (x)", units=units, default=width), DialogFloat("length", "Length (y)", units=units, default=length), ]
def __init__(self, width, length, ballSize, units): self.editor = [ DialogMulti("text", "Text", default="Text"), DialogFont( "font", "Font", default='/usr/share/fonts/truetype/msttcorefonts/Arial.ttf'), DialogFloat("cHeight", "Height", units=units, default=inchesToUnits(4.0, units), min=inchesToUnits(1.0, units), max=length, step=inchesToUnits(.5, units)), DialogFloat("lineSpacing", "Line Spacing", default=1.0, min=1.0, max=2.0, step=.25), DialogInt("rotate", "Rotation Angle", units="degrees", default=0., min=-180, max=180), DialogList("origin", "Origin", list=['BottomLeft', 'Center'], default='Center'), DialogFloat("xOffset", "X Origin", units=units, default=width / 2.0), DialogFloat("yOffset", "Y Origin", units=units, default=length / 2.0), ]
def __init__(self, width, length, ballSize, units): self.editor = [ DialogFile("filename", "File Name", default=CLIPART_PATH, filter='.dxf'), DialogInt("iterations", "Number of Fill Iterations", default=0, min=0, max=60), DialogFloat("decrement", "Fill Decrement", units=units, default=0.5, min=0.0, max=inchesToUnits(2.0, units)), DialogFloat("ballSize", "Ball Size", units=units, default=ballSize, min=inchesToUnits(0.25, units)), DialogBreak(), DialogFloat("xOffset", "X Origin", units=units, default=0.0), DialogFloat("yOffset", "Y Origin", units=units, default=0.0), DialogFloat("width", "Width (x)", units=units, default=width, min=1.0, max=width * 2), DialogFloat("length", "Length (y)", units=units, default=length, min=1.0, max=length * 2), ]
def __init__(self, width, length, ballSize, units): self.editor = [ DialogFloat("wHeight", "Wave Height", units=units, default=inchesToUnits(1.0, units), min=0.0, max=length), DialogInt("lines", "Lines", default=40, min=5, max=100), DialogInt("xCount", "Points per line", default=100, min=10, max=160), DialogFloat("waves", "Waves per Line", default=3.0, min=0.0, max=45.0), DialogFloat("shift", "Shift per Line", units="degrees", default=5.0, min=0.0, max=10.0), DialogFloat("increment", "Wave increment", units="percent", default=100.0, min=95.0, max=105.0), DialogBreak(), DialogFloat("xOffset", "X Origin", units=units, default=0.0), DialogFloat("yOffset", "Y Origin", units=units, default=0.0), DialogFloat("width", "Width", units=units, default=width, min=1.0, max=1000.0), DialogFloat("length", "Length", units=units, default=length, min=1.0, max=1000.0), ]
def __init__(self, width, length, ballSize, units): self.width = width self.length = length radius = min(width, length) / 2.0 mRadius = max(width, length) / 2.0 self.editor = [ DialogFloat("turns", "Turns", default=10, min=1, max=max(width, length) * 4), DialogFloat("angleStart", "Starting angle", units="degrees"), DialogFloat("angleRate", "Sample rate", units="degrees", default=5.0), DialogFloat("base", "Growth base power", default=1.0, min=0.001), DialogFloats("frequencies", "Wave frequency(s)", units="f1,f2,...", default=[6, 30], min=1.0, max=60.0, minNums=1, maxNums=3), DialogFloats("amplitudes", "Wave amplitude(s)", units="%s a1,a2,..." % units, default=[1, .5], min=0.1, max=inchesToUnits(2.0, units), minNums=1, maxNums=3), DialogFloats("phases", "Wave phase(s)", units="degrees p1,p2,...", default=[0, 0], min=0.0, max=360.0, minNums=1, maxNums=3, rRound=0), DialogYesNo("fitToTable", "Fit to table"), DialogBreak(), DialogFloat("xCenter", "X Center", units=units, default=width / 2.0), DialogFloat("yCenter", "Y Center", units=units, default=length / 2.0), DialogFloat("innerRadius", "Inner radius", units=units, default=radius * 0.15, min=0.0, max=mRadius), DialogFloat("outerRadius", "Outer radius", units=units, default=radius, min=1.0, max=mRadius), ]
def __init__(self, width, length, ballSize, units): size1 = inchesToUnits(1, units) self.editor = [ DialogFloat("xNeck", "X Location of Neck", units=units, default=width / 2.0), DialogFloat("yNeck", "Y Location of Neck", units=units, default=length / 1.5), DialogBreak(), DialogFloat("leftShoulderAngle", "Left shoulder angle", units="degrees", default=-20.0, min=-60.0, max=60.0), DialogFloat("leftElbowAngle", "Left elbow angle", units="degrees", default=-20.0, min=-60.0, max=60.0), DialogFloat("rightShoulderAngle", "Right shoulder angle", units="degrees", default=-20.0, min=-60.0, max=60.0), DialogFloat("rightElbowAngle", "Right elbow angle", units="degrees", default=-20.0, min=-60.0, max=60.0), DialogFloat("leftKneeAngle", "Left thigh angle", units="degrees", default=50.0, min=-60.0, max=60.0), DialogFloat("leftCalfAngle", "Left calf angle", units="degrees", default=20.0, min=-60.0, max=60.0), DialogFloat("rightKneeAngle", "Right thigh angle", units="degrees", default=60.0, min=-60.0, max=60.0), DialogFloat("rightCalfAngle", "Right calf angle", units="degrees", default=20.0, min=-60.0, max=60.0), DialogBreak(), DialogFloat("headSize", "Head Size (radius)", units=units, default=size1), DialogFloat("neckLength", "Neck length", units=units, default=size1), DialogFloat("bodyLength", "Body length", units=units, default=size1 * 4), DialogFloat("thighLength", "Thigh length", units=units, default=size1 * 2), DialogFloat("calfLength", "Calf length", units=units, default=size1 * 2), DialogFloat("upperArmLength", "Upper arm length", units=units, default=size1 * 2), DialogFloat("foreArmLength", "Forearm length", units=units, default=size1 * 2), ]