On 01/06/2013 at 03:53, xxxxxxxx wrote:
Hi !
I'm trying to do some 2D drawing using the 2D drawing methods from BaseDraw (DrawLine2D, DrawCircle2D, and so on...).
I can change the color of the drawing, but I couldn't find a way to :
- draw continuous lines (I can only get dashed lines)
- change the thickness of the lines
Is this possible ? How ? (I've searched through the doc, but found only the SetPointSize method which seem to have no effect)
Thanks !
Olivier
from c4d import \*
#Welcome to the world of Python
def main() :
draw = doc.GetActiveBaseDraw()
#ligne rouge
draw.SetPen(Vector(255,0,0))
draw.DrawLine2D( Vector(200,170,0), Vector(360,150,0) )
#cercle vert
draw.SetPen(Vector(0,255,0))
draw.DrawCircle2D(250,230,40 )
#ligne bleue
draw.SetPen(Vector(0,0,255))
draw.SetPointSize(5) #aucun effet
draw.DrawLine2D( Vector(200,320,0), Vector(360,300,0) )