Advanced Export Options and UI Configuration Caching#19
Advanced Export Options and UI Configuration Caching#19AleFeng wants to merge 17 commits intoEsotericSoftware:masterfrom
Conversation
- Propagated group visibility downward during recursive traversal. - Combined layer collection and effective-visibility recording into a single recursive pass to improve efficiency.
- Toggle for Ignore Group Visibility. - export path setting for the output JSON file.
- Toggle for Clear Old Images before export. - Simplified output path selection workflow. - Improved overall UI layout and spacing.
- Coordinate origin is now configurable (X/Y), with range support for [0,1]. - Added a toggle to keep coordinate values as integers (drop decimal part). - Added quick access to open the exported file location after export completion.
- Added origin coordinate preset buttons for quick setup (Center, Bottom-Center, Bottom-Left, Top-Left). - Added real-time clamping for origin coordinate inputs, limiting values to the [0,1] range. - Added export completion dialog warnings that list any file paths that failed to write during export.
- Added configuration caching for all export options, so settings are restored automatically on next launch. - Added a Reset Config button to restore default values and clear cached settings.
- Update version to v1.2. - Add configuration UI screenshots and usage guide. - Add Chinese (ZH) README.
- Add Spine import configuration guide. - Restructure document hierarchy for better readability.
- Added a Known Issues regarding potential Draw Order issues in Spine when importing new layers from Aseprite.
|
I am not an Aseprite expert, but I have a couple of doubts.
|
Thanks for your feedback! I’m actually using Aseprite to create assets and Spine for 2D animations for my indie game. I came across this 'aseprite-to-spine' plugin and decided to iterate on it based on common game development workflows.
Thanks again for the valuable insights! |
|
Thanks for the quick reply :)
|
- Added Normalized [0,1] and Pixel modes for origin coordinates. - Added Sliders for Origin (X, Y) to allow more intuitive control. - Added "Ignore Hidden Layers" toggle for more flexible exports. - Removed redundant "Use layer visibility only" option.
- Added Image Scale option to adjust the resolution of exported images. - Added Image Padding setting to define pixel padding around image borders.
- Added support for [origin] tag: The plugin now automatically uses the center of any layer named [origin] as the export origin. - Added Spine Logo to the dialog header for better branding/recognition. - Refined UI Layout: Optimized spacing and alignment of all control panels for a cleaner look.
- Update the document content to v1.3 - Code organization and optimization.
Thanks for the detailed explanation! I've updated the PR based on our discussion and added several features inspired by the Photoshop version to align the workflows.
[origin] Layer Support: In Aseprite, there is no such reference line function as in Photoshop that can be utilized. I’ve implemented support for a [origin] tagged layer. The script now automatically detects this layer and uses its position as the export origin, offering a visual way to set the origin point directly in the canvas.
UI/UX : Added the control method of Slider to the input box and reorganized the layout and typography. |
Core Logic & Performance
Recursive Visibility: Implemented effective group visibility propagation during layer traversal.
Optimization: Combined layer collection and visibility checks into a single pass for better efficiency.
UI & User Experience
New Options Panel: Added toggles for "Ignore Group Visibility" and "Clear Old Images."
Improved Path Selection: Simplified the output directory workflow and added a "Quick Open Folder" feature post-export.
Layout Refinement: Polished UI spacing and element alignment for better readability.
Coordinate System
Custom Origin: Added configurable X/Y origin (0.0 to 1.0) with quick presets (Center, Top-Left, etc.).
Integer Toggle: Added an option to round coordinate values to integers.
Input Validation: Implemented real-time clamping for coordinate bounds.
Configuration Management
Persistent Cache: Settings are now automatically saved and restored on the next launch.
Reset Feature: Added a "Reset Config" button to restore factory defaults.
Error Reporting: Added a summary dialog to report any file-write failures.