line width with sketch

florent colautti's icon

hi

2 questions:
- i make drawing with the jit.gl.sketch object. when i change the width, he change the width to all the lines. i search the possibility to change individually the width, make drawing with smaller and larger lines on the same picture.

- i like to delimit section. is it possible to send the sketch drawing to a square make with a jit.gl.plato or a videoplane. like a canvas.

thanks
all the best
f

Max Patch
Copy patch and select New From Clipboard in Max.

seejayjames's icon

for different line widths, you'd need multiple jit.gl.sketch objects, same as color or point_size. though maybe through direct GL calls you can change these attributes for one sketch? not sure.

for the canvas, you could capture the drawing to a matrix, then use the matrix as a texture on the jit.plato/jit.gridshape/jit.videoplane. probably there are other ways too. might need to alter tex_map attribute to suit (or to make it go crazy :)

florent colautti's icon

ok,thanks
all the best
f