useFrameSelection
ts
Returns the reactive selection for a dataset.
Subscribes to SharedImageSet.onSelectionChanged.
Parameters
| Parameter | Type | Description |
|---|---|---|
sis | SharedImageSet | The dataset to observe |
Returns
ts
The current focus index, a setter, and the total frame count
| Name | Type |
|---|---|
focus | number |
setFocus() | (index: number) => void |
count | number |
Throws
If called outside of an ImFusionProvider
Throws
If called before the SDK has finished initializing
Example
tsx