Skip to content

a python batcher UI to run tasks after each other. no multiprocessing, no async

Notifications You must be signed in to change notification settings

hannesdelbeke/basic-batcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Basic batcher

A batcher for Python.

Example

  • You want to rename all meshes in Blender with a script. (Currently easier with Blender's native script editor)
  • For each file in a folder, you want to open this scene, and check naming conventions.

iter input:

import pathlib;pathlib.Path("C:/my_folder").glob('**/*.blend')

script input: (pseudo code)

import bpy

bpy.load_scene(str(item))
for obj in bpy.objects:
  print(obj) # TODO check if obj is named correctly

TODO

  • save job script, load job from file
  • same for input / iter
  • sample scenarios
    • validate scenes in a folder
    • validate scenes from a text file with scene paths
    • easily select different input configs
    • run from inside blender, validate multiple scenes. reuse existing blender for speed. if it crashes we lose progress.
    • run from outside blender, validate multiple scenes. open new blender for each
    • save progress to log
    • continue from a crash
    • read log in to see results

Dev

ensure either PySide6 or 2 is installed

Don't edit job_manager_ui.py, edit job_manager.ui instead and build the ui with (PySide6)

cd batcher
pyside6-uic job_manager.ui -o job_manager_ui.py

About

a python batcher UI to run tasks after each other. no multiprocessing, no async

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages