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

MoveCel command parameters? #58

Open
IgnacioLuxP opened this issue Sep 12, 2021 · 0 comments
Open

MoveCel command parameters? #58

IgnacioLuxP opened this issue Sep 12, 2021 · 0 comments

Comments

@IgnacioLuxP
Copy link

IgnacioLuxP commented Sep 12, 2021

Would it be possible to update the API documentation with the parameters for app.command.MoveCel?

Unfortunately it doesn't have any relevant information in gui.xml and decoding the source for it in cmd_move_cel.cpp and the timeline/context scripts was far beyond my skill and knowledge.

I tried quite a few combination of parameter names based on those pages, seeing if I'd hit the jackpot (srcLayer, srcFrame, toFrame, passing numbers, passing ranges, layer/frame objects, etc, etc.) seeing if I'd get a result, but nope. I scrubbed all Aseprite scripts and the examples seeing if there was a reference, but no luck either.

Reason I'm asking is that I'm writing a couple QoL scripts that involve moving cels around, tagging, etc. to automate how I get sprites for my game and the lack of API documentation regarding moving cels has made me do things in awkward manners: Currently, my code 1) copies the cels one by one, 2) deletes the original cels, 3) checks if they have to be relinked 4) relinks them. This isn't very efficient. If I could just pass a range or something, it would be a lot easier, but not so without a little more info.

Apologies if this is not the place to be asking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant