#@tool #extends EditorScript # #func _run(): #var paths = [ #"res://assets/img/textures/faces/face_bis1.png", #"res://assets/img/textures/faces/face_bis2.png", #"res://assets/img/textures/faces/face_bis3.png", #"res://assets/img/textures/faces/face_bis4.png", #"res://assets/img/textures/faces/face_bis5.png", #"res://assets/img/textures/faces/face_bis6.png", #"res://assets/img/textures/faces/face_bis7.png", #"res://assets/img/textures/faces/face_bis8.png", #"res://assets/img/textures/faces/face_bis9.png", #"res://assets/img/textures/faces/face_bis10.png", #"res://assets/img/textures/faces/face_bis11.png", #"res://assets/img/textures/faces/face_bis12.png", #"res://assets/img/textures/faces/face_bis13.png", #"res://assets/img/textures/faces/face_bis14.png", #"res://assets/img/textures/faces/face_bis15.png", #"res://assets/img/textures/faces/face_bis16.png", #] #var images: Array[Image] = [] #for p in paths: #print("p: ", p) #images.append(load(p).get_image()) # #var tex_array = Texture2DArray.new() #tex_array.create_from_images(images) # #ResourceSaver.save(tex_array, "res://assets/img/textures/faces.tres") #print("Saved skin_array.tres with ", images.size(), " layers")