1
0
Fork 0
freesewing/markdown/dev/reference/hooks/presample/en.md
2021-10-17 17:34:55 +02:00

19 lines
481 B
Markdown

***
## title: preSample
The `preSample` hook runs just before your pattern is sampled.
It is triggered at the very start of either:
* the [Pattern.sampleOption()](/reference/api/pattern/#sampleoption) method
* the [Pattern.sampleMeasurement()](/reference/api/pattern/#samplemeasurement) method
* the [Pattern.sampleModels()](/reference/api/pattern/#samplemodels) method
Your plugin will receive the Pattern object.
<Note>
The `preSample` hook is rarely used.
</Note>