Hi!

Has anyone tried to use bpy.ops.sculpt.brush_stroke() before?
(http://www.blender.org/documentation/250PythonDoc/bpy.ops.sculpt.html)
Are you able to supply your own set of 3D coordinates instead
to control sculpting brush movement?

>From the Current PyAPI, this operator has an attribute called "stroke"
which is a bpy_prop_collection of OperatorStrokeElement
bpy.types.OperatorStrokeElement contains some properties like
location that I thought I could use it to pass new coordinates. 
(http://www.blender.org/documentation/250PythonDoc/bpy.types.OperatorStrokeElement.html)
However, I ran into problems on initialization - not sure what kind of 
parameter 
it needs to initialize. (bpy_struct is a bit too generic... )

I searched around for existing similar examples, but so far none of them 
actually used this 
sculpting operator. I'm working on a tracking project that is already hooked 
with Blender and
I'm trying to build some input interfaces to access some of the Blender's 
modelling functions,
such as the sculpting. I initially expected bpy.ops.sculpt.brush_stroke may 
allow me to
feed in streams of 3D coordinates to control the sculpt brush in 3D space. But 
now I'm really
not certain if I'm looking at the right operator or bpy method.

So is it possible to use this operator to take control of sculpting brush 
without the use of mouse/tablet
OR it's simply impossible/disallowed to do so at the moment?


Anthony


      
_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to