CODEWITHJIM / Python Reddit Bot Practice 001 HD
Was inspired by Reddit April Mop 2017 Experimentation on drawing on interactive collaborative canvas on 1000 x 1000 pixels, I decided to practice coding some kind of automated mouse reposition and pixel placement using Python. Here I am using Python 3 script and PyAutoGUI module to place Pixel in Blender 2D Paint Mode. At some point, perhaps I can also control the mouse using Blender Python. Either way will work. This should actually work, but currently very dependant on a couple of things: - Mouse Position within boundary of frame of Active Window or App in target. I am using Blender as example. - Currently this code only draw simple rainbow color along X and Y coordinates If we want it to draw based on a specific reference IMAGE, then we need some kind of way to pick a color and place a pixel. This is a tedious yet a fun thing to do for pixel art creation. We can always add PAUSE and some kind of waiting or watcher that knows where to place mouse. MODULE: https://pypi.python.org/pypi/PyAutoGUI ADDITIONAL REFERENCE: https://automatetheboringstuff.com/chapter18/
Похожие видео
Показать еще