plugin
Loader
Bases: LoaderPlugin
Source code in client/ayon_tvpaint/api/plugin.py
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 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 | |
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
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 | |