- Dec 31, 2020
- 283
- 1,301
FilthySloth good NPR shader work
You could simplify your update() method to 'just update' rather than create whole a whole new object each time
also to avoid duplicating your flipped images you can 'show ... at flip...' seeing as you've defined that transformationPython:def change(self, **kwargs): for key, val in kwargs.items(): if hasattr(self, key): setattr(self, key, val) def increment(self, **kwargs): # use as Morrigan.increment(happy=1, horny=1) for key, val in kwargs.items(): if hasattr(self, key): setattr(self, key, getattr(self, key) + val) # or def increment(self, update_dict): # use as Morrigan.increment({'happy':1, 'horny':1}) for key, val in kwargs.items(): if hasattr(self, key): setattr(self, key, getattr(self, key) + val)
finally you could shrink your jpg files without noticeable loss of quality with little script something likePython:show katherine day normal at flip, right1
Python:import os from PIL import Image PIC_DIR = './' # all folders below starting folder extensions = ['.jpg','.jpeg'] # can add to these picture_dir = PIC_DIR for root, _dirnames, filenames in os.walk(picture_dir): for filename in filenames: ext = os.path.splitext(filename)[1].lower() if ext in extensions: file_path_name = os.path.join(root, filename) try: im = Image.open(file_path_name) if im.size[0] > 100: im.save(file_path_name, optimize=True, qtables="web_low") except: print("error with " + file_path_name)
Hello thanks for feedback...
1. There is an issue with Rollback on Renpy when it comes to data structures, and I was doing this as a workaround... I understand there are more elegant solutions than this, but hey it is working for me.
2. These images are actually completely different, I could have just flipped the images, but then the shadowing would switch direction and that looks rubbish to me.
3. Thanks for the tip... I'll have a gander.