def run(this, point, scale, shape): out = Frame() scale = scale.getNext() point = point.getNext() for value in shape.getNext().values: out.addValue((value[0] * scale + point[1], value[1] * scale + point[1], value[2] * scale + point[2])) return out
def run(this): out = Frame() out.addValue((0.5, 0.5, 0)) out.addValue((-0.5, 0.5, 0)) out.addValue((-0.5, -0.5, 0)) out.addValue((0.5, -0.5, 0)) return out
def run(this, widthIn, heightIn): out = Frame() width = widthIn.getNext() height = heightIn.getNext() out.addValue((width/2.0, height/2.0, 0)) out.addValue((width/2.0, -height/2.0, 0)) out.addValue((-width/2.0, -height/2.0, 0)) out.addValue((-width/2.0, height/2.0, 0)) return out
def run(this): out = Frame() for point in range(this.numPoints): angle = point * 2 * math.pi / this.numPoints out.addValue((math.cos(angle), math.sin(angle), 0)) return out