diff options
Diffstat (limited to 'release/scripts/freestyle/styles/multiple_parameterization.py')
-rw-r--r-- | release/scripts/freestyle/styles/multiple_parameterization.py | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/release/scripts/freestyle/styles/multiple_parameterization.py b/release/scripts/freestyle/styles/multiple_parameterization.py index 922a5ffa972..da140c75147 100644 --- a/release/scripts/freestyle/styles/multiple_parameterization.py +++ b/release/scripts/freestyle/styles/multiple_parameterization.py @@ -27,15 +27,25 @@ # the strokes using a second parameterization that only # covers the visible portions. -from freestyle import ChainSilhouetteIterator, ConstantColorShader, IncreasingColorShader, \ - IncreasingThicknessShader, Operators, QuantitativeInvisibilityUP1D, SamplingShader, \ - TextureAssignerShader, TrueUP1D -from shaders import pyHLRShader +from freestyle import Operators +from freestyle.chainingiterators import ChainSilhouetteIterator +from freestyle.predicates import ( + QuantitativeInvisibilityUP1D, + TrueUP1D, + ) +from freestyle.shaders import ( + ConstantColorShader, + IncreasingColorShader, + IncreasingThicknessShader, + SamplingShader, + TextureAssignerShader, + pyHLRShader, + ) Operators.select(QuantitativeInvisibilityUP1D(0)) ## Chain following the same nature, but without the restriction -## of staying inside the selection (0). -Operators.bidirectional_chain(ChainSilhouetteIterator(0)) +## of staying inside the selection (False). +Operators.bidirectional_chain(ChainSilhouetteIterator(False)) shaders_list = [ SamplingShader(20), IncreasingThicknessShader(1.5, 30), |