利用者:Mont29/Dev/Dynamic Sketch
< 利用者:Mont29 | Dev
Dynamic Sketch patch
{{#dpl:
|debug=0 |skipthispage=no |mode=ordered |namespace=利用者 |titlematch=Mont29/Dev/Dynamic Sketch/% |shownamespace=false |format=Subpages,²{#ifeq:²{IsUpper¦²{SUBPAGENAME:%PAGE%}²}²¦1¦²{Multiply¦*¦²{#expr:1+²{PagetitlePartsAmount¦%TITLE%}²-²{PagetitlePartsAmount¦²{PAGENAME}² }² -1 }² }² ²{SUBPAGENAME:%TITLE%}²¦}²,,
}}
This patch adds timing data to GP strokes, by storing an inittime in each stroke (value returned by PIL_check_seconds_timer() func), and then a delta time for each of its points, relative to that inittime.
These timing data can then be used during conversion to Curve objects, to create a path animation (i.e. an Evaluation Time F-Curve) exactly reproducing the drawing movements.
Aside from this “main feature”, the patch brings several fixes/enhancements:
- Stroke smoothing/simplifying will no more move the start/end points of a stroke (this was rather annoying sometimes!).
- Also optimized smoothing code (even though not really noticeable on a modern computer, it now uses less memory and runs faster).
- When converting to curve, you now have the following new possibilities:
- Normalize the weight values (currently, they will get “stroke width * 0.1”, i.e. would range by default from 0.0 to 0.3…).
- Scale the radius values to your liking (again, currently they are set from stroke width times 0.1)!
- Link all strokes into a single curve, using zero-radius sections (this is mandatory to use the dynamic feature!).
Here is a small demo video: