Skip to main content

SceneProgRenderer

SceneProgRenderer is a Python-based Blender automation tool for rendering scenes programmatically. It allows users to generate high-quality renders, including 360-degree animations, custom camera angles, and transparent background images using Blender’s Python API.

🚀 Features

  • Scene Loading & Setup

    • Clears the scene and loads a new .blend file.
    • Applies smooth shading and fixes materials.
    • Adds an environment texture for realistic lighting.
  • Rendering Options

    • Single Render: Capture an image from a specified camera position.
    • Front/Top Views: Render images from standard viewpoints.
    • Corner Views: Automatically position the camera at four scene corners.
    • Edge Midpoints: Position the camera at four upper midpoints of the scene.
    • 360-Degree Animation: Generate a rotating video render.
  • Supports Transparent Backgrounds

    • Renders images with RGBA and film transparency for compositing.

📦 Installation

pip install sceneprogrenderer

📜 Usage

Importing the package:

from sceneprogrenderer import SceneProgRenderer

Initializing the Renderer

renderer = SceneProgRenderer(
    resolution_x=1920,
    resolution_y=1080,
    samples=128,
    frame_rate=30,
    num_frames=360,
    cuda=False,
    verbose=False,
)

Generic Render

renderer.render(
  path="scene.blend",
  output_path="output.png",
  location=(2, 2, 2),       ## Camera location
  target=(0, 0, 0),         ## Target location
)

Render from corners or edge midpoints

renderer.render_from_corners(
  path="scene.blend",
  output_paths=["corner1.png", "corner2.png", "corner3.png", "corner4.png"],
)

renderer.render_from_edge_midpoints(
  path="scene.blend",
  output_paths=["edge1.png", "edge2.png", "edge3.png", "edge4.png"],
)

Render from front or top views

renderer.render_from_front(
  path="scene.blend",
  output_path="front_view.png",
)

renderer.render_from_top(
  path="scene.blend",
  output_path="top_view.png",
)

Render 360-degree animation

renderer.render_360(
  path="scene.blend",
  output_path="360_animation.mp4",
)

Metadata

Release files for sceneprogrenderer 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sceneprogrenderer 0.1.4
File Size Uploaded Provenance
sceneprogrenderer-0.1.4.tar.gz 5.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sceneprogrenderer 0.1.4
File Interpreter ABI Platform
sceneprogrenderer-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 11.9 kB

Release files / sceneprogrenderer-0.1.4.tar.gz

Download URL sceneprogrenderer-0.1.4.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bab2e67adb0a1f1dfff8dd43abb01cb1f72051e4e113e2097ef39cbba3c46ca2
BLAKE2b-256 checksum
How to use checksums
47771436a40c4f6eef64e3f686661cefc0e7412cc636344e48ca08ccf587f55a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / sceneprogrenderer-0.1.4-py3-none-any.whl

Download URL sceneprogrenderer-0.1.4-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd47788c318f6fd36bda59f3c345724670023c17ed1cc4c60edd0db42382457f
BLAKE2b-256 checksum
How to use checksums
79e88262a6b31008919107d2589b4791ad12f3e5dc325a55fa41a774fcca22d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for sceneprogrenderer 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page