Hi, i’m working on an add-on for blender thats allow you interact with the Leap Motion in many ways. One of those is to use the controller in sculpt mode, but when i try to pass the coordinates to the brush stroke no errors result, but nothing happens. I’ve already read this 2 post:
i use Blender 2.78, and this is part of my code:
view_align = (VU.rotate_vector(fing_pos, view.view_rotation))*40
leap_pointer.location = view_align + leap_pointer.location
stroke = [{ "name": "stroke1",
"mouse" : (0.0, 0.0),
"pen_flip" : False,
"is_start": True,
"location": leap_pointer.location,
"pressure": 1.0,
"time": 1.0,
"size":35
},
{"name" : "stroke2",
"mouse" : (0.0, 0.0),
"pen_flip" : False,
"is_start" : False,
"location": leap_pointer.location,
"mouse": (0.0, 0.0),
"pressure":1.0,
"time":1.0,
"size":35
}]
bpy.ops.sculpt.brush_stroke(overrider, stroke=stroke, mode=‘NORMAL’)
Do you have any kind of advice?