This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Creates/Overwrites new, consolidated Static Meshes, disables Nanite, and sets complex collision. | |
# This is a non-destructive workflow by default, with an option to enable overwriting. | |
# Run inside Unreal Editor's Python console. | |
import unreal | |
import os | |
import re | |
import traceback | |
# --------------------------------- USER CONFIG --------------------------------- | |
# The folder in your Content Browser containing ALL the individual Static Mesh LODs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bl_info = { | |
"name": "LOD Slicer Workflow Tool", | |
"version": (10, 3, 5), | |
"blender": (4, 0, 0), | |
"location": "View3D > Sidebar > LOD Slicer", | |
"description": "Generate non-destructive LODs, slice meshes on baked duplicates, and control LOD visibility.", | |
"warning": "", | |
"doc_url": "", | |
"category": "Object", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Save this script as a .py file and install it via Blender's Preferences > Add-ons | |
bl_info = { | |
"name": "FBX Map LOD Side Panel Importer", | |
"version": (1, 2), # Version updated | |
"blender": (3, 0, 0), | |
"location": "3D View > Sidebar (N Panel) > Map Importer", | |
"description": "Imports a structured map from FBX files via a side panel UI. Safe to re-run.", | |
"category": "Import-Export", | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: ============================================================================ | |
:: Gaea Batch Build & Rename Script (with Unique Timestamp) - v3 (Robust) | |
:: ============================================================================ | |
:: 0. Cleans the output directory with error checking to ensure a fresh build. | |
:: 1. Runs six sequential Gaea builds into a static output folder. | |
:: 2. After all builds are complete, renames the output folder with a | |
:: unique YYYYMMDD-HHMMSS timestamp for versioning. | |
:: ============================================================================ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
from datetime import datetime | |
from krita import Krita | |
from PyQt5.QtWidgets import QMessageBox | |
def inspect_object(obj, object_name): | |
"""Inspects a Python object and returns a formatted string of its attributes.""" | |
if obj is None: | |
return f"'{object_name}' is not available (None).\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from krita import Krita | |
from PyQt5.QtWidgets import (QDialog, QVBoxLayout, QHBoxLayout, QLabel, | |
QSpinBox, QPushButton, QFormLayout, QSpacerItem, | |
QSizePolicy, QMessageBox, QCheckBox, QComboBox, | |
QGroupBox) | |
class LayerArrangerDialog(QDialog): | |
""" | |
A dialog for arranging layers with a polished UI, multi-corner reset, | |
and intra-cell alignment. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Krita Text Grid Generator (Definitive SVG Method - with UI and Formatting) | |
# This script prompts the user for grid dimensions, numbering style, and font size, | |
# then automatically generates an evenly spaced text grid that fits the canvas. | |
try: | |
from krita import Krita | |
from PyQt5.QtWidgets import (QDialog, QSpinBox, QLabel, QVBoxLayout, | |
QFormLayout, QDialogButtonBox, QComboBox) | |
from PyQt5.QtGui import QColor | |
except ImportError: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
from krita import Krita | |
# CHANGED: Imported QComboBox | |
from PyQt5.QtWidgets import QDialog, QVBoxLayout, QHBoxLayout, QFormLayout, QComboBox, QPushButton, QMessageBox, QLabel | |
from PyQt5.QtCore import Qt | |
app = Krita.instance() | |
# --- Main dialog --- | |
def show_split_by_size_dialog(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Krita script to split the active layer into a grid of new layers | |
# based on a user-specified cell size. | |
import math | |
from krita import Krita, QMessageBox | |
from PyQt5.QtWidgets import QDialog, QVBoxLayout, QFormLayout, QSpinBox, QPushButton | |
def show_split_by_size_dialog(): | |
""" | |
Creates and displays a dialog for the user to specify cell size parameters. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# stitch_heightmap_kitra.py | |
# Stitches 16x8 tiles into a single paint layer with no popups (uses QImage, not openDocument). | |
import os | |
from krita import Krita | |
from PyQt5.QtGui import QImage | |
# --- CONFIG --- | |
image_folder = r"C:\Users\user\Documents\World Creator\Export\Heightmap" | |
filename_pattern = "Continent1_Height Map_1024x1024_{x}_{y}.png" |
NewerOlder