Skip to content

MixeroTN/figma-roblox-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Roblox Image Exporter for Figma

A powerful Figma plugin that exports images optimized for Roblox with chipng-like processing to prevent pixel artifacts and edge bleeding. Select any layer in Figma and export it with professional Roblox optimization at multiple scales.

πŸš€ Quick Start

  1. Download the plugin files: manifest.json, code.js, ui.html
  2. Install in Figma: Go to Plugins β†’ Development β†’ Import plugin from manifest...
  3. Select layers in your Figma file
  4. Export with optimization at 1x, 2x, or 4x scale

πŸ‘‰ See detailed installation guide β†’

✨ Features

  • 🎯 Smart Layer Detection: Automatically detects exportable Figma layers
  • πŸ“ Multiple Scales: Export at 1x, 2x, or 4x like Figma's native export
  • πŸ›‘οΈ Roblox Optimization:
    • Adds transparent borders to prevent compression artifacts
    • Extends edge pixels for smooth blending
    • Optimizes alpha channels for Roblox's texture system
  • ⚑ Batch Export: Export multiple selected layers at once
  • πŸ”„ Real-time Preview: Shows selected items with dimensions

πŸ“ Project Structure

  • manifest.json - Plugin configuration
  • code.js - Main plugin logic and Figma API integration
  • ui.html - Plugin interface with image processing
  • README_PLUGIN.md - Complete plugin documentation

πŸ“– Documentation

🎨 Supported Layer Types

  • βœ… Frames, Components, Instances
  • βœ… Groups, Rectangles, Ellipses
  • βœ… Polygons, Stars, Vectors
  • βœ… Text layers (exported as images)

πŸ”§ Technical Details

Image Processing

The plugin uses HTML5 Canvas for Roblox optimization:

  1. Border Addition: 2px transparent border
  2. Edge Extension: Extends edge pixels into border
  3. Alpha Optimization: Proper transparency handling
  4. Scale Preservation: Crisp edges at all scales

File Naming

Exported files: {layer_name}_{scale}x_roblox.png