You can write your own Axiom plug-in and intergrations using the Python API!

Overview

The Axiom runtime and accompanying Python API lets you run Axiom simulations independently of a Digital Content Creation (DCC) application.

Just like the Houdini plug-in it can run on macOS, Windows, & Linux using the OpenCL, Metal, & Cuda compute APIs with no reliance on any external dependencies.

Architecture

The Python package acts as an interface between your application and the Axiom runtime.

Python Script
        |
        v
Axiom Python API
        |
        v
IPC / Shared Memory
        |
        v
Axiom Runtime
        |
        +-- Simulation
        +-- Sourcing
        +-- VDB Output
        +-- Rendering

Simulation calculations are performed by the Axiom runtime written in C++ rather than by Python itself. The Python API is just an interface for sending commands to the runtime to execute.

<aside> 💡

You cannot run the runtime independently in a console as it uses a specific IPC protocol to issue commands. You can in theory dissect the Python API and create your own API for other languages that communicates with a matching protocol.

</aside>

Installation

You can download the runtime module from the build page.

<aside> 💡

Not yet available!

</aside>

You can install it anywhere your Python can find it or just include the whole module in your project for distribution.

License

The runtime still requires an Axiom Indie or Axiom Commercial license to use. You can run it in trial mode for free but the output VDBs will have a watermark.

Example

The module also includes an axiom_standalone.py script that can run a basic simulation with source VDB inputs and write the VDBs to disk.

You can run it in a command line or terminal like this which will just use a basic source shape as a source.

python axiom_standalone.py --output-directory ./output

You can also give it source VDBs like this: