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

Sprite modifications are not allowed after a transform commands on scripts #4447

Open
Gasparoken opened this issue May 3, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@Gasparoken
Copy link
Member

Gasparoken commented May 3, 2024

Reported internally: https://igarastudio.zendesk.com/agent/tickets/6130

The error: Cannot modify the sprite. It is being used by another command. Try again. will appear if a Sprite:[modify] function is performed after performing a transform command, example:

app.command.MaskAll()
app.command.Rotate{target="mask", angle=1}
app.activeSprite:newLayer()

This has been happening since version 1.3.3 and can easily affect custom community scripts.

Until this is resolved, use app.command.DeselectMask() after the transform function to release Aseprite from the "in the middle of a transform" state.

app.command.MaskAll()
app.command.Rotate{target="mask", angle=1}
app.command.DeselectMask()
app.activeSprite:newLayer()
@Gasparoken Gasparoken added this to the v1.3.x milestone May 3, 2024
@Gasparoken Gasparoken self-assigned this May 3, 2024
@dacap dacap changed the title Sprite modifycations are not allowed after a transform commands on scripts Sprite modifications are not allowed after a transform commands on scripts May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant