1
0
Fork 0
freesewing/markdown/dev/reference/api/hooks/presample/en.md

20 lines
475 B
Markdown
Raw Normal View History

---
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
2022-02-19 08:04:25 +01:00
Your plugin will receive the Pattern object.
<Note>
The `preSample` hook is rarely used.
</Note>