You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The location coordinates passed to OperatorStrokeElement are coordinates of viewport. If you start with a standard cube at position (0,0,0) with size (2,2,2) and you apply the following strokes:
you'll get a deformation along the Y axis on top. If you move the cube to position (2,0,0), apply the transformation (Ctrl + A -> Location) and use the same brush strokes as above, nothing will happen. But if you now set the location of the strokes to (2,0,1) and (2,1,1) respectively, you'll see again the deformation on top.
Thanks for the explanation! I have a related question about sculpting. For some sculpting tools such as Grab and Snake Hook, you have to click on the shape and then drag your mouse. Is it possible to do this in Python scripts? I tried the sculpting code in this repo, it essentially places strokes as individual points. I'm not sure whether it can work for Grab and Snake Hook.
Hi,
Nice job.
I write scripts in Blender as well for other tasks,
I would like to understand more about the stroke parameters for sculpting:
The documentation is quite poor:
https://docs.blender.org/api/current/bpy.types.OperatorStrokeElement.html
Specifically, for location and mouse.
How did you defined the location? according to the viewport or the object location?
When I do it manually in Blender, I don't see the printed script in info as I see in other tasks.
The text was updated successfully, but these errors were encountered: