Git Product home page Git Product logo

Comments (2)

MaxRabbit avatar MaxRabbit commented on June 14, 2024 1

One note I'll add in here for any future readers.
If you have your layers grouped together in Aseprite then your regex has to include those parent groups if you want them to import.

e.g.

Clothes
    Shirts
        RedShirt
        BlueShirt
    Jackets
        LeatherJacket

You have the Clothes group and inside that are the Shirts and Jackets groups and inside those are your layers.
If you want to import only the RedShirt then your regex should be (?!Clothes|Shirts|RedShirt) rather than just (?!RedShirt).

from godot-aseprite-wizard.

viniciusgerevini avatar viniciusgerevini commented on June 14, 2024

Hello @cachi01 . Thank you. Selecting multiple layers will require some thinking. I don't think godot has any nice multi-select node to be used in the inspector and I need to check which command is being used. It might be possible

Yeah, having to manually hide the layers is annoying. I have a couple alternatives that might be easier if you haven't thought about them yet.

The simplest way is by using Groups in Aseprite. You put all layers you want exported in a group and select it instead of the individual layers. The downside is that if your intention is to export more than one sprite from the same source file and they have shared layers, those shared layers won't be included if not in the group.

The second method I can think of is by using the exclusion pattern. It requires a little bit of knowledge of Regex, but you can use a negated pattern to select only the layers you want.

Let's say in the same file you have layers for a green character, a blue character and some shared layers. To export the green char you could do something like this: (?!green|shared). This regex would exclude any layer that doesn't contain green or shared in the name.

You could also use a prefix instead. Like this: ^(?!char_1_|shared_). For this one, all layers starting with char_1_ or shared_ will be included in the final animation and the others ones be ignored.

I don't think any of these methods are ideal, but they might make your life easier in the meantime. Cheers.

from godot-aseprite-wizard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.