Skip to content

Instantly share code, notes, and snippets.

View zeffii's full-sized avatar

Dealga McArdle zeffii

View GitHub Profile
@zeffii
zeffii / gist:0a82d36aae36b6961b529fa5d672c8cc
Created May 5, 2022 14:14
_PropertyDeferred is because you are assigning variablename = bpy.props.SomeProperty instead of variablename: bpy.props.SomeProperty
description contains all you need. probably doing this in an Operator or Custom Blender node.
@zeffii
zeffii / polygon_indices_from_multipolygons.py
Last active April 28, 2022 14:37
geopandas world to polygons
"""
>in geom s
out verts v
out edges s
out faces s
"""
try:
import mathutils
import pandas as pd
@zeffii
zeffii / simple_bbox.py
Created April 27, 2022 08:37
bbox_simple
def basic_bbox(verts):
"""
input:
accepts verts as python iterables or as an np.array
verts = [v1, v2, v3, v3, ....]
or
verts = np.array(verts)
output:
@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
],