y5gfunc.preview.output¶
output
¶
Functions:
| Name | Description |
|---|---|
reset_output_index |
Resets the global output index counter and the set of used indices. |
set_preview |
Outputs VapourSynth clips in vspreview. |
Attributes:
| Name | Type | Description |
|---|---|---|
used_indices |
|
reset_output_index
¶
set_preview
¶
Outputs VapourSynth clips in vspreview.
This function handles assigning output indices automatically or allows for explicit index specification.
Nodes are named in vspreview as {index}: {variable_name}. When debug=True, node name is overlaid onto the video.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
A variable number of arguments representing the clips to output.
Each argument can be:
- A single |
()
|
|
|
bool
|
If True, overlays the inferred variable name onto the output clip for identification during previews. |
True
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
ValueError
|
If an explicitly provided output index in a |
ValueError
|
If an explicitly provided output index is already assigned by a prior call to |
TypeError
|
If any provided argument or an element within a passed list/tuple is not a |
Note
This function uses global variables (_output_index, used_indices) to track assigned indices across multiple calls within a single script run.
Use reset_output_index() to clear this state if you need to reuse indices or manage output sets independently.
Source code in y5gfunc/preview/output.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | |