Skip to content

Instantly share code, notes, and snippets.

@dreisicht
dreisicht / separate_by_parts.py
Created August 28, 2017 05:48
Blender Python script to improve function separate by loose parts
import bpy
# edit mode
bpy.ops.object.mode_set(mode='EDIT')
# TODO: lookup if disable window for script run is worth it
for #loop
# TODO: lookup if for loop or while loop is quicker
@dreisicht
dreisicht / musterprüfung.md
Last active July 12, 2018 16:58
Musterprüfung

Musterprüfung

1. Worin unterscheiden sich Eustress und Distress? (2)

Eustress -> positiver Stress Distress -> negativer Stress

U.a. abhängig davon, ob die Situation als bewältigbar eingeschätzt wird, und damit eine positive Herausforderung ist, oder ob der Ausgang der Bewältigung unklar ist.

2. Lazarus untergliedert sein transaktionales Stresskonzept in drei Bewertungsprozesse. Nennen Sie diese drei und führen Sie die jeweiligen Prozesse kurz aus. (3)

@dreisicht
dreisicht / rendersettings.py
Created September 26, 2018 16:10
Rendersettings python
import bpy
print("PYTHON SCRIPT LAUNCHED!!!!!!")
for scene in bpy.data.scenes:
print("setting settings for", scene)
scene.render.resolution_x = 1920
scene.render.resolution_y = 1080
scene.render.resolution_percentage = 200
scene.cycles.samples = 512
scene.render.use_border = False
scene.cycles.seed = 0
@dreisicht
dreisicht / protocoll.md
Last active April 21, 2020 01:53
protocoll police video

Protocol meeting police videos

30.10.2018

wishes of police

  • start a series of clips for social media
  • 5-8 clips (rose: less clips)
  • music recognizable
  • combining different abilities

elevatorpitch

import csv
import os
from shutil import copy2
def create_folders_from_csv(csv_file_path, output_dir):
with open(csv_file_path, newline='', encoding='utf-8') as csvfile:
data = csv.reader(csvfile, dialect='excel')
for row in data:
dirpath = os.path.join(output_dir, row[0].replace('?', '').replace(':', ''))
## Kassette
10----12----14----16----18-------21-------24----------28-------------33----------------39----------------45----------------51 |Shimano SLX 12x
11----13----15----17----19----21-------24----------28----------32-------------37-------------------------46 |SLX 11x
11----13----15----17----19----21-------24----------28----------32-------------37-------------42 |SLX 1by 11x
11----13----15----17----19----21----23-------26----------30----------34 |GRX600 10x
11----13----15----17----19----21----23----25----27-------30----------34 |GRX810 11x
11-12-13-14----16----18----20----22-------25-------28----------32 |105 11x
11-12----14----16----18----20----22-------25-------28 |Tiagra 10x
11-12-1
ERROR (bke.modifier): C:\Users\blender\git\blender-vexp\blender.git\source\blender\blenkernel\intern\modifier.c:457 BKE_modifier_set_error: Object: "schneehaufen_l", Modifier: "DataTransfer", Source or destination object has a high polygon count, computation might be slow
ERROR (bke.modifier): C:\Users\blender\git\blender-vexp\blender.git\source\blender\blenkernel\intern\modifier.c:457 BKE_modifier_set_error: Object: "schneehaufen_l", Modifier: "DataTransfer", Source or destination object has a high polygon count, computation might be slow
Calloc returns null: len=7522083376 in CDPropCol, total 2253465120
ERROR (bke.modifier): C:\Users\blender\git\blender-vexp\blender.git\source\blender\blenkernel\intern\modifier.c:457 BKE_modifier_set_error: Object: "Aset_nature_embankment_L_vcytca0fa_LOD0", Modifier: "DataTransfer", Source or destination object has a high polygon count, computation might be slow
Calloc returns null: len=5641562532 in CDNormal, total 2252274356
Malloc returns null: len=5641562532 in BKE_mesh
@dreisicht
dreisicht / git.diff
Last active October 15, 2021 08:09
git diff
diff --git release/scripts/addons/node_wrangler.py b/node_wrangler.py
index 68573302..18cc4f2e 100644
--- release/scripts/addons/node_wrangler.py
+++ release/scripts/addons/node_wrangler.py
@@ -28,7 +28,7 @@ bl_info = {
"category": "Node",
}
-import bpy, blf, bgl
+import bpy, bgl
# ##### 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