Skip to content

Instantly share code, notes, and snippets.

View zeffii's full-sized avatar

Dealga McArdle zeffii

View GitHub Profile
@zeffii
zeffii / xlsm_writer.py
Created March 12, 2025 08:45
xlsm_writer.py - issue sheet
import bpy
import xlsxwriter
fname = r"C:\Users\DealgaMcArdle\Documents\Blender Experiments\creating_EXCEL_FILE\excel_example\xls_output.xlsx"
# prepare data
sdata = bpy.data.texts['data'].as_string().split('\n')
names_and_dateissued = [s.split(' ') for s in sdata]
structured_data = {}
@zeffii
zeffii / edge_2_face.py
Last active February 8, 2025 13:23
edge_2_face
def intersect_line_plane(v1, v2, plane_co, plane_no):
u = l2[0]-l1[0], l2[1]-l1[1], l2[2]-l1[2]
h = l1[0]-plane_co[0], l1[1]-plane_co[1], l1[2]-plane_co[2]
dot = plane_no[0]*u[0] + plane_no[1]*u[1] + plane_no[2]*u[2]
if abs(dot) > 1.0e-5:
f = -(plane_no[0]*h[0] + plane_no[1]*h[1] + plane_no[2]*h[2]) / dot
return l1[0]+u[0]*f, l1[1]+u[1]*f, l1[2]+u[2]*f
else:
# parallel to plane
@zeffii
zeffii / bridge_edges.py
Created February 6, 2025 15:14
bridge edges
'''
in verts v
in edges s
out new_verts v
out new_edges s
'''
import numpy as np
def shortest_edge_between_edges(edge1, edge2):
@zeffii
zeffii / deepseek_tracker.md
Created February 1, 2025 15:15
audiotracker using deepseeks suggestion

Creating an old-school music tracker-style sequencer in Max for Live (M4L) is a fun and creative project! Trackers are known for their vertical, pattern-based interface where notes are entered in a grid, often with columns representing different instruments or voices. Below is a step-by-step guide to building a basic tracker-style sequencer in Max for Live:


1. Plan the Interface

Before diving into Max, sketch out the key components of your tracker:

  • Pattern Grid: A vertical grid where each row represents a step and each column represents a voice or instrument.
  • Note Input: A way to input notes (e.g., via MIDI or a virtual keyboard).
  • Playback Controls: Play, stop, and tempo controls.
  • Pattern Length: Adjustable pattern length (e.g., 16 steps, 32 steps).
@zeffii
zeffii / point_picker_and_writer.lsp
Created November 8, 2024 12:04
point picker and setter
(defun c:FindNearestText ()
;; Prompt the user to select a point
(setq pickPoint (getpoint "\nPick a point: "))
;; Check if the point is valid
(if pickPoint
(progn
;; Set initial variables
(setq minDist nil ;; Store minimum distance
nearestTextContent nil) ;; Store content of the nearest text
@zeffii
zeffii / exploration_script.py
Last active September 15, 2024 16:16
pyrevit shell scripts
'''
PyRevit
Final Checklist
[x] list all levels in the current doc
[x] name and
[x] level value
[x] associated with any plan view?
[x] list all plan views
@zeffii
zeffii / robs_songlist.md
Last active November 30, 2023 18:26
rob's songlist
@zeffii
zeffii / pixilang.sublime-syntax
Last active July 31, 2023 15:48
syntax hilighting for pixilang ( incomplete )
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
name: Pixilang
file_extensions:
- pixi
scope: source.pixi
@zeffii
zeffii / index_progress.html
Last active August 27, 2022 18:27
script for triangulated geometry
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - geometry - vertex colors</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link type="text/css" rel="stylesheet" href="../files/main.css">
<style>
body {
@zeffii
zeffii / mellow_movies.md
Last active August 13, 2022 21:59
mellow movies
  • back to the future (any, all)
  • honey i shrunk the kids
  • microcosm
  • hunt for red october
  • the abyss
  • california man
  • jurrasic park
  • ghost busters 1
  • jacques cousteau docs (any, all)
  • red dwarf (series)