lib
isolated_layers_visibility(stub, layer_ids, all_layers=None)
Show only the specified layers and their ancestor paths, hiding all siblings.
Similar to isolated_instance_visibility but supports multiple layer IDs. All specified layers and their ancestors will be visible simultaneously.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stub | PhotoshopServerStub | required | |
layer_ids | List of layer IDs to show (can be single layer or multiple) | required | |
all_layers | Optional list of PSItem layers (fetched if not provided) | None |
Tracks original visibility and restores it on exit.
Source code in client/ayon_photoshop/api/lib.py
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 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | |
maintained_selection()
Maintain selection during context.
Source code in client/ayon_photoshop/api/lib.py
76 77 78 79 80 81 82 83 | |
publish_in_test(log, close_plugin_name=None)
Loops through all plugins, logs to console. Used for tests. Args: log (Logger) close_plugin_name (Optional[str]): Name of plugin with responsibility to close application.
Source code in client/ayon_photoshop/api/lib.py
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | |