Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug:Photoshop multiple instances of loaded asset have same name #6051

Open
2 tasks done
kalisp opened this issue Dec 13, 2023 · 2 comments
Open
2 tasks done

Bug:Photoshop multiple instances of loaded asset have same name #6051

kalisp opened this issue Dec 13, 2023 · 2 comments
Assignees
Labels
type: bug Something isn't working

Comments

@kalisp
Copy link
Member

kalisp commented Dec 13, 2023

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]

@kalisp kalisp added the type: bug Something isn't working label Dec 13, 2023
@kalisp kalisp self-assigned this Dec 13, 2023
@BigRoy
Copy link
Collaborator

BigRoy commented Dec 13, 2023

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"]
)

@LiborBatek
Copy link
Member

@kalisp I guess you have already resolved this or?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants