Page MenuHome

Sculpt API can no longer be used to draw strokes via python
Closed, ResolvedPublic

Description

System Information
Windows 10 and Ubuntu Linux

Blender Version
Broken: 2.78 and current git
Worked: 2.76b and 2.77a

Short description of error
An change in sculpt stroke initiation to fix a different bug made the sculpt API no longer work.

Exact steps for others to reproduce the error
Place the script sculpt_stroke_on_grease_pencil.py in your addons folder, then run the script with the attached blend - stroke on curve.blend . In previous versions there is a stroke that follows the path of the curve around the object. In current git and 2.78 it no longer works.


Event Timeline

Campbell, I believe it is one of these commits that caused the issue (I think the more recent of the two, but can't recall for certain.)

https://developer.blender.org/rBe8c24ee0d9262fe648f4bd8f13e1a2f1f88ae050
https://developer.blender.org/rB6ac0d357d68d35dc24be9c77fc48abfe20fb3657

Sergey Sharybin (sergey) lowered the priority of this task from Needs Triage by Developer to Normal.Jul 28 2017, 10:58 AM

Can get the script to work in 2.76b, but not in 2.77a.

In any case, @Campbell Barton (campbellbarton), mind having a look?