Skip to content

Instantly share code, notes, and snippets.

@bandinopla
bandinopla / pull_external_images_addon.py
Created February 2, 2025 00:14
Blender Addon to pull images from directories outside of the .blend file's directory.
#
# will create a menu item in the File menu, when clicked it will track all image files pointing to files outside of the .blend file directory and pull them in in a folder.
#
bl_info = {
"name": "Pull External Images",
"blender": (2, 93, 0), # Adjust to the version you're using
"category": "File",
"author": "Bandinopla + ChatGPT",
"description": "Copy external images used by the blend file to a new directory and update material image paths.",
"version": (1, 0, 0),
@bandinopla
bandinopla / letsencrypt-in-namecheap.md
Last active January 24, 2024 17:06
Use letsencrypt certificate in Namecheap hosting

Video tutorial/credit to Anatu Tech: https://www.youtube.com/watch?v=VPzxid4jRX0

  1. install https://github.com/acmesh-official/acme.sh
  2. go to your cpanel, in Terminal tool, type: .acme.sh/acme.sh --issue -d AAA -w /home/BBB/public_html/AAA/ --server letsencrypt where:
  • AAA = the domain for which you want to create the certificate
  • BBB = your namecheap username
  • Multiple domains? add -d AAA2 -d AAA3 etc, for each extra domain...
  1. execute, that will create files in a folder .acme.sh/<AAA>_ecc
  2. open that folder with the file manager in another tab
@bandinopla
bandinopla / AddEmptyFrames.py
Last active September 30, 2023 17:10
Blender's F5 Flash equivalent
import bpy
# Get the selected object
selected_object = bpy.context.object
# Check if an object is selected and it has an active action
if selected_object and selected_object.animation_data and selected_object.animation_data.action:
# Get the current frame marker position
current_frame = bpy.context.scene.frame_current