Skip to content

Instantly share code, notes, and snippets.

@SuddenDevelopment
SuddenDevelopment / get shape from selected faces.py
Last active August 3, 2022 13:20
Blender, Python, create 2d shape from 3d selected faces.
import bpy, bmesh, mathutils
# Blender script to get selected faces and create a new flat plan from the shapoe
def createDelaunay(points):
vs = [mathutils.Vector(co[:2]) for co in points]
# mathutils.geometry.delaunay_2d_cdt(vert_coords, edges, faces, output_type, epsilon, need_ids=True)
result = mathutils.geometry.delaunay_2d_cdt(vs, [], [], 0, 0.001)
vertices, edges, faces = result[:3]
@p2or
p2or / io_batch_import_objs.py
Last active May 21, 2023 18:02
Blender 2.92+ - Batch import obj files based on my answer here: https://blender.stackexchange.com/a/31825/31447 #Blender #BSE
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@JakeCoxon
JakeCoxon / distribute.py
Created December 24, 2020 21:32
Blender addon to distribute objects along an axis
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
@jooize
jooize / multiple-firefox-in-windows-taskbar.markdown
Last active March 1, 2024 21:44
Multiple Firefox in Windows Taskbar
  • Open Run (Winkey-R or right-click Start menu), insert "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" -p, press OK, to start Firefox profile manager.
  • You may be able to run simply firefox -p. Guide is written to be robust for system differences.
  • Press "Create Profile...".
  • Press "Next".
  • Insert a profile name. It can contain spaces. Example: "Web App 1"
  • Now don't rush. It is easy to inadvertently change the default profile.
  • Press "Finish".
  • Press "Exit". If you instead pressed "Start Firefox" without unchecking "Use the selected profile without asking at startup": open Firefox profile manager again (read step 1), select your desired profile (probably "default"), enable the option "Use the selected profile [...]", press "Start Firefox", continue with the step after this.
  • Open Run, insert: "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" --no-remote -P "Web App 1"
  • Select the location field (Ctrl-L).
@ethanaeris
ethanaeris / fastlandscape2_8.py
Last active September 11, 2022 07:17
Fast Landscape for Blender 2.8
# -*- coding: utf-8 -*-
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@ethanaeris
ethanaeris / Pie_workspaces.py
Last active September 14, 2022 17:04
Pie Workspaced Addon for Blender 2.8. A quick way to switch between workspaces
# -*- coding: utf-8 -*-
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@p2or
p2or / blender-filebrowser-display-override.py
Last active May 21, 2023 18:07
Override File Browser Display Settings (http://blender.stackexchange.com/q/23159/3710) #Blender #BSE
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the