Skip to content

Instantly share code, notes, and snippets.

View zeffii's full-sized avatar

Dealga McArdle zeffii

View GitHub Profile
@zeffii
zeffii / ui_cookbook_backup.md
Last active May 20, 2022 16:36
ui cookbook

NOTE: This document uses Python global in a way which is bad practice, this document should be edited to remove misuse of globals --Ideasman42 12:48, 9 September 2013 (CEST).

Interface

Most scripts need to communicate with the user in some way. A script may be invoked from a menu or from a button in a panel, and it may take its input from sliders, checkboxes, drop-down menus or inputs boxes. User

@zeffii
zeffii / instructions.md
Created April 13, 2022 13:33
pip and blender instructions

Windows

pip now comes pre-installed with Blender's python.

Installing self contained libraries will usually be a matter of doing this in cmd

python -m pip install your_library
@zeffii
zeffii / comment.md
Last active February 17, 2022 16:30
wordle solver simple.

wordle online may suppress words, like "slave".

@zeffii
zeffii / NodeTree.001
Created August 30, 2021 12:11
Sverchok.1.0.0 (2be8ed9) | Blender.3.0.0Alpha | NodeTree.001 | 2021.08.30 | 14:11 | license: CC BY-SA
{
"export_version": "1.0",
"main_tree": {
"nodes": {
"Frame info": {
"attributes": {
"location": [
-332.4909362792969,
-193.47860717773438
],
@zeffii
zeffii / NodeTree.001
Created August 30, 2021 12:11
Sverchok.1.0.0 (2be8ed9) | Blender.3.0.0Alpha | NodeTree.001 | 2021.08.30 | 14:11 | license: CC BY-SA
{
"export_version": "1.0",
"main_tree": {
"nodes": {
"Frame info": {
"attributes": {
"location": [
-332.4909362792969,
-193.47860717773438
],
@zeffii
zeffii / sverchok_bootstrap_v2.py
Last active August 18, 2021 12:22
sverchok_bootstrap_v2.py
import bpy
import urllib.request
from zipfile import ZipFile
import shutil
import os
from os.path import basename
from os.path import dirname
MAJOR, MINOR = bpy.app.version_file[0:2]
@zeffii
zeffii / NodeTree
Created June 8, 2021 08:37
Sverchok.0.6.0.0 | Blender.2.93.0Beta | NodeTree | 2021.06.08 | 10:37 | license: CC BY-SA
{
"export_version": "1.0",
"main_tree": {
"nodes": {
"Frame": {
"attributes": {
"location": [
-28.453428268432617,
11.548300743103027
],
@zeffii
zeffii / NodeTree
Created May 20, 2021 15:52
Sverchok.0.6.0.0 | Blender.2.93.0Beta | NodeTree | 2021.05.20 | 17:52 | license: CC BY-SA
{
"export_version": "0.10",
"framed_nodes": {},
"groups": {},
"nodes": {
"Circle": {
"bl_idname": "SvCircleNode",
"color": [
0.0,
0.5,
# This file is part of project Sverchok. It's copyrighted by the contributors
# recorded in the version control history of the file, available from
# its original location https://github.com/nortikin/sverchok/commit/master
#
# SPDX-License-Identifier: GPL3
# License-Filename: LICENSE
import bpy
from bpy.props import FloatProperty, EnumProperty, BoolProperty, StringProperty
from mathutils import Vector
@zeffii
zeffii / pygments_replacement_blender.py
Last active May 2, 2021 07:46
makes one text object and changes the characters individually with respect to their material
import bpy
import numpy as np
#
text_in = bpy.data.texts["Text"].as_string()
def get_obj_and_fontcurve(context, name):
collection = context.scene.collection
curves = bpy.data.curves
objects = bpy.data.objects