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
def make_basic_curve(): | |
crv = bpy.data.curves.new("crv", type="CURVE") | |
crv_ob = bpy.data.objects.new("crv_ob", crv) | |
return crv, crv_ob | |
scnobs = bpy.context.scene.objects | |
pencil = bpy.data.grease_pencil[0] | |
for i, stroke in enumerate(pencil.layers[0].active_frame.strokes): |
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
''' | |
Created by Jeacom | |
This is a utility module for drawing lines in the 3D viewport on Blender 2.8 | |
using the GPU Api | |
The idea is to get rid of messy draw functions and data that is hard to keep track. | |
This class works directly like a callable draw handler and keeps track of all the geometry data. | |
''' |
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
""" | |
stable diffusion dreaming | |
creates hypnotic moving videos by smoothly walking randomly through the sample space | |
example way to run this script: | |
$ python stablediffusionwalk.py --prompt "blueberry spaghetti" --name blueberry | |
to stitch together the images, e.g.: | |
$ ffmpeg -r 10 -f image2 -s 512x512 -i blueberry/frame%06d.jpg -vcodec libx264 -crf 10 -pix_fmt yuv420p blueberry.mp4 |