ProcFunc: Function-Oriented Abstractions for Procedural 3D Generation in Python
Documentation | Research Paper | Transpiling | Experiments | Contributing
This repository contains only the Primitives API, Transpiler and Tracer from our research paper.
Please see the infinigen2 documentation and sourcecode to access the paper's library of new procedural generators
Installation
Use uv or your favorite package manager to install procfunc via pip:
uv pip install procfunc
Note: ProcFunc depends on bpy==4.2.0 which then requires Python==3.11.x. Other version are not yet supported.
Since we have not yet reached semver 1.0.0 we have not yet finalized procfunc's interface.
In the meantime, each 0.X.0 may introduce interface changes. Please pin uv add procfunc<0.XX where X is the current version.
Usage
See procfunc.readthedocs.io for available functions
Please create Github Issues for any bugs or unclear interfaces!
Transpile a blender file to ProcFunc code
Convert a Blender geometry node tree into procfunc Python code by downloading our example blend and executing the transpiler:
wget https://raw.githubusercontent.com/princeton-vl/procfunc/main/examples/transpile_simple_chair/simple_chair.blend
uv run procfunc transpile simple_chair.blend --node_trees simple_chair --output transpiled_code.py
See the expected output in examples/transpile_simple_chair/transpiled_code.py.
To use the code, you can add pf.ops.file.save_blend("test.blend") to the end of it, then open the generated blender file.
You can also open and edit the blender geonodes prior to transpiling in order to generate different procfunc code.
Paper
If you find procfunc useful, please cite our paper:
@misc{raistrick2026procfunc,
title={ProcFunc: Function-Oriented Abstractions for Procedural 3D Generation in Python},
author={Alexander Raistrick and Karhan Kayan and Jack Nugent and David Yan and Lingjie Mei and Meenal Parakh and Hongyu Wen and Dylan Li and Yiming Zuo and Erich Liang and Jia Deng},
year={2026},
eprint={2604.26943},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2604.26943},
}
Experiments
See experiments/EXPERIMENTS.md
NOTE: experiments are only intended to be correct when using the experiments branch, which will not see major updates.
Contributing
Please create an issue for any proposed features to discuss them before implementing.
Developer Installation
git clone git@github.com:princeton-vl/procfunc.git
cd procfunc
uv venv
uv pip install -e ".[dev]"
Tools
uv run ruff format
uv run ruff check --fix
uv run pytest
make docs
Todos / Sharp Edges
Add optional support for bpy==4.x and 5.x and maybe 3.6, all under the same procfunc interface.
pf.ops is missing some blender functions and arguments, especially returning "selection" masks for some cases.
Assets like pf.MeshObject and pf.Material are not currently cleaned up upon going out of scope
Metadata
Release files for procfunc 0.37.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| procfunc-0.37.0.tar.gz | 319.7 kB | Without provenance | Details for procfunc-0.37.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| procfunc-0.37.0-py3-none-any.whl | Python 3 | none | any | Details for procfunc-0.37.0-py3-none-any.whl |
Total release size: 651.7 kB
Release files / procfunc-0.37.0.tar.gz
| Download URL | procfunc-0.37.0.tar.gz |
|---|---|
| Size | 319.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f90189d962583728981bc32826563b15ca9b78075a56716bebe954cca760de1f
|
|
BLAKE2b-256 checksum How to use checksums |
263d43d2898bdbd457415772a24d3c33a6cb20f9f560a505bde514e67b697d65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / procfunc-0.37.0-py3-none-any.whl
| Download URL | procfunc-0.37.0-py3-none-any.whl |
|---|---|
| Size | 332.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85ac05b559a3d735e04dea3b50e348ec460d9eb4591b811fd4efecb507b9a660
|
|
BLAKE2b-256 checksum How to use checksums |
5879ea1ba987665b48cd4306372b8bb65618b958349ac7df928373234195c0d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for procfunc 0.37.0
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.