This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"autodeskProduct": "Fusion360", | |
"type": "script", | |
"author": "Travis Evashkevich", | |
"description": { | |
"Multi Export for STL's": "Export selected bodies to folder" | |
}, | |
"supportedOS": "windows|mac", | |
"editEnabled": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#imports | |
from PIL import Image | |
import numpy | |
import pytoshop | |
from pytoshop.user import nested_layers | |
from pytoshop import enums | |
from pytoshop.image_data import ImageData | |
#Convert Pillow image to pyto layer (not fool proof by anymeans) | |
def pillow_image_to_pyto_image(name, image, x, y, visible, opacity, group_id, blend_mode, metadata, layer_color, color_mode, width = 0, height = 0): |