top of page

Folder Gifs (PE.FolderGifs)

PE.FolderGifs.gif_from_folder(folder_dir: str, length: int, start=0, format=".png", name="", zero_c=0, pos=(0, 0), size=(100, 100), fps=30, color=(0, 0, 0, 0), rot=0)

load pe gif using all images from a folder (built for blender like output folder) great for having multiply gifs in the same folder.

​

function actions:

runs for specific count of images in a folder. loading an image from automated string using the initial parameters. 

​

parameters:

folder_dir - the path of the dir. for example: "assets/data/character_gif/" (path like string)

length - the count of images that the gif should contain. (int)

start - starting index (int)

format - file format (must include '.' at the start) (str)

name - the start of the file name (str)

zero_c - the number of digits in the name. for example: zero_c=0 -> "hello.png", "hello12.png" | zero_c=2 -> "image00.png", "image05.png", "image 103.png". (int)

pos - position on screen (vector2 like)

size - size on screen (vector2 like)

fps - gif's frame rate (float)

color - the tint color of the gif (color4 like)

rot - the rotation of the gif in degrees (int)

returns:

pe gif which contains all the images that you described (PE.gifsPG.Gif)

PE.FolderGifs.auto_gif_from_folder(folder_dir: str, image_format='', name='', pos=(0, 0), size=(100, 100), fps=30, color=(0, 0, 0, 0), rot=0):

load all the files from a folder as a gif. unlike gif_from_folder, in order to use auto_gif_from_folder, you cant put several gifs in the same folder.

​

function actions:

reads all the file from a folder, and pick only these which start with 'name' and end with 'image_format'.

​

parameters:

folder_dir - the path of the dir. for example: "assets/data/character_gif/" (path like string)

image_format - file format (or the end of the file name) (str)

name - the start of the file name (str)

pos - position on screen (vector2 like)

size - size on screen (vector2 like)

fps - gif's frame rate (float)

color - the tint color of the gif (color4 like)

rot - the rotation of the gif in degrees (int)

returns:

pe gif which contains all the images that you described (PE.gifsPG.Gif)

​

Powered and secured by Wix © 2035

bottom of page