ynput/OpenPype

Bug:Photoshop multiple instances of loaded asset have same name

Opened this issue · 2 comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

When loading same asset twice, both layers have same _001 suffix, it should be ordinal number, unique.

Check version updates for each of the loaded container. (There seems to be something fishy.)

Expected Behavior:

No response

Version

3.18.0

What platform you are running OpenPype on?

Windows

Steps To Reproduce:

1.Load multiple times same image
2.Check names of loaded layers

Are there any labels you wish to add?

  • I have added the relevant labels to the bug report.

Relevant log output:

No response

Additional context:

No response

[cuID:OP-7604]

Likely it's a matter of enforcing unique name on load. It looks like update already does that only when "switching asset":

if namespace_from_container != layer_name:
layer_name = get_unique_layer_name(
stub.get_layers(), context["asset"], context["subset"]
)

@kalisp I guess you have already resolved this or?