plugin
Loader
Bases: LoaderPlugin
Source code in client/ayon_tvpaint/api/plugin.py
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 | |
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
252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 | |