plugin
Loader
Bases: LoaderPlugin
Source code in client/ayon_tvpaint/api/plugin.py
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 | |
get_unique_layer_name(namespace, name)
Layer name with counter as suffix.
Find higher 3 digit suffix from all layer names in scene matching regex {namespace}_{name}_{suffix}. Higher 3 digit suffix is used as base for next number if scene does not contain layer matching regex 0 is used ase base.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
namespace | str | Usually folder name. | required |
name | str | Name of loaded product. | required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
|
Source code in client/ayon_tvpaint/api/plugin.py
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 | |