Page MenuHome

Gpencil Offset Modifier - Add randomize offset options
ClosedPublic

Authored by Cody Winchester (CodyWinch) on Jan 21 2021, 7:42 PM.

Details

Summary

This patch adds the Randomize options that exist in the Array modifier to the offset modifier.

Currently the patch uses

BLI_findindex(&gpf->strokes, gps);

to get the index of the current stroke for making each stroke a different seed value. This is how the noise modifier also gets the stroke seed value and it is noted there as well that this method is slow, and should be fixed in the future with another method of getting the stroke index.
Other methods were explored such as using the total number of points of the stroke, but that makes the randomize options incompatible with other modifiers before it such as Multiple Strokes, Array, Build, and Simplify.

Diff Detail

Repository
rB Blender

Event Timeline

Cody Winchester (CodyWinch) requested review of this revision.Jan 21 2021, 7:42 PM
Cody Winchester (CodyWinch) created this revision.

@Cody Winchester (CodyWinch) could you please update the patch with latest changes in master? couldn't test the patch it gives me compiling errors

This revision was not accepted when it landed; it landed in state Needs Review.Apr 29 2021, 3:48 PM
This revision was automatically updated to reflect the committed changes.

My bad... I send the commit before to accept the patch.

This revision is now accepted and ready to land.Apr 29 2021, 4:43 PM

Closing because it was commited