Page MenuHome

Grease Pencil point pressure max value too low
Closed, ResolvedPublic

Description

System Information
Operating system: Any
Graphics card: Not related

Blender Version
Broken: 2.80, any

Short description of error
Grease Pencil Point property "pressure" has max. value 1. This applies when accessing from python. With Sculpt Mode, you can get much larger values.
If it's acceptable solution, it should be enough to increase the max value in the function rna_def_gpencil_stroke_point, file source/blender/makesrna/intern/rna_gpencil.c.

Exact steps for others to reproduce the error
Draw simple Grease Pencil line.
Switch to Sculpt Mode.
Select Thickness brush.
Make the line thick.
Switch to Scripting and run this code:

point = bpy.data.grease_pencils[0].layers[0].frames[0].strokes[0].points[0]
print(point.pressure) # prints for example 15.351
point.pressure = 10
print(point.pressure) # prints 1, you can also see the change in the 3d view; if my fix is applied, this line prints 10.0

Event Timeline

Philipp Oeser (lichtwerk) lowered the priority of this task from Needs Triage by Developer to Confirmed, Medium.

@Antonio Vazquez (antoniov): sounds reasonable (but not sure)?

note this should then also be modified in rna_def_gpencil_stroke_points_api...