brunchstudio / pytvpaint

Python scripting for TVPaint
https://brunchstudio.github.io/pytvpaint/
MIT License
18 stars 2 forks source link

Use kwargs for `tv_setactiveshape` parameters #10

Closed jhenrybrunch closed 5 months ago

jhenrybrunch commented 5 months ago

For the tv_set_active_shape function, if you want to set the shape parameters you need to do that:

george.tv_set_active_shape(george.TVPShape.RECTANGLE, "aaliasing", 0)

With the fix, using kwargs is more pythonic:

george.tv_set_active_shape(george.TVPShape.RECTANGLE, aaliasing=0)

(reported by @kstrandli)