DazScript Server
Version 2.16.0 | DAZ Studio 4.5+ | Daz Studio 6.26 | Windows & macOS
A production-ready DAZ Studio plugin that embeds a secure HTTP server inside DAZ Studio, enabling remote execution of DazScript via HTTP POST requests (or an optional Python library that wraps the interface and adds additional features) with JSON responses. Control DAZ Studio programmatically from external tools, automation scripts, and custom applications.
[!NOTE]
As of v2.6.0, plugins for DS4 and DS6 on Windows, MacOS Intel, and MacOS Apple Silicon are included as part of the standard release artifacts. Remember that if you want to use a newer version of the plugin you must remove any old DLL or dylib file first!
๐ Quick Start
Already have the plugin installed?
- Open DAZ Studio โ Window โ Panes โ Daz Script Server
- Click Start Server (default:
127.0.0.1:18811)
- Click Copy to copy your API token (optional, but recommended for public environments)
Option A โ dazpy Python SDK (recommended):
pip install dazpy
import time
from dazpy import DazClient, DazScene
client = DazClient() # auto-loads token from ~/.daz3d/dazscriptserver_token.txt
scene = DazScene(client)
print(scene.num_nodes(), "nodes in scene")
figure = scene.find_skeleton_by_label("Genesis 9")
bones = figure.bones()
print([b._identifier.value for b in bones if "neck" in b._identifier.value.lower()])
rots=[0,4,10,15,20]
for rot in rots:
print (f"Set rotation {rot}")
figure.find_bone("neck1").set_local_rotation(0, rot, 0)
time.sleep(1)
Option B โ raw HTTP (any language):
import requests
response = requests.post(
"http://127.0.0.1:18811/execute",
json={"script": "(function(){ return 'Hello there from Daz Studio!'; })()"}
)
print(response.json())
Need to get the plugin? Jump to Getting the Plugin below.
Examples
Complete example collection: daz-script-server-examples repository
Production-ready examples ranging from beginner tutorials to advanced pipeline implementations:
- 48 examples across 9 categories
- Individual READMEs with skill level classification
- Requirements.txt per example
- Comprehensive searchable table
Categories: fundamentals, character, animation, rendering, geometry, export, ml_data, ai_vision, bvh
๐ Table of Contents
Getting Started
dazpy Python SDK
Using the Plugin
Security & Best Practices
Advanced Topics
Reference
Additional Documentation
Why This Exists
DAZ Studio is powerful for 3D content creation, but automation is limited to manually running scripts. This plugin solves that by exposing REST endpoints (HTTP) for remote clients to, among other things, submit inline scripts to execute, which can return log output lines and a return object as JSON.
What You Can Do:
- Remote Automation - Control DAZ Studio from Python, web apps, CI/CD pipelines
- Programmatic Access - Build custom tools that interact with scenes, assets, and rendering
- Integration - Connect to game engines, asset pipelines, batch processing systems
- API-First Development - Treat DAZ Studio as a service with HTTP APIs
Common Use Cases:
- Batch rendering and asset processing
- Asset management system integration
- Automated scene generation and testing
- Custom web-based controllers
- CI/CD pipelines for 3D content validation
What's New in v2.16.0
๐งช Pre-render scene checks, artifact trust boundary, daz-ts 0.2.0
Catch a bad shot before you render it. DazScene.check() reports
figures that are cut off by the frame or missing from it, and a scene with
no light. Each finding has a severity and, for framing, the frame edges a
figure crosses. Scene recipes can enforce the checks:
from dazpy import DazScene, recipe
report = DazScene().check(engine="iray")
for f in report.findings:
print(f.severity, f.code, f.subject, f.message)
recipe.apply(my_recipe, DazScene(), require_clean=True) # rolls back on check errors
recipe.render(..., require_clean=True) raises SceneCheckError instead of
rendering, and a recipe shot's allow_crop silences the framing warnings
for a deliberate crop. See Scene recipes โ Pre-render checks.
Artifact downloads are confined to allowed folders. The server serves a
job's declared output only when its real path (symlinks resolved) is inside
an allowed artifact folder: by default the system temp
folder plus your Documents, Pictures, Desktop and Downloads. If your jobs
write outputs elsewhere (e.g. D:/renders), add that folder in the server
pane, or downloads answer HTTP 403 ARTIFACT_OUTSIDE_ROOTS.
daz-ts 0.2.0 (npm install @bluemoonfoundry/daz-ts) adds multi-figure
interaction posing (rig profiles, the IK solver and the hug/kiss/handshake/
fight/sit/touch recipes via DazScene.applyInteractionRecipe()) and ports
of dazpy.shots and dazpy.shot_library. Shot plans serialise to the same
JSON in both SDKs.
Also in this release:
DazScene.create_group() creates an empty group node, e.g. a camera-rig
parent.
- Shot framing matches Studio's vertical frame. Shots used to stand
1/aspect too far back.
Quat.from_dz() / to_dz() convert Studio's DzQuat.
- Server fixes: a crash when an SSE client disconnected as a render
finished, and sync executes stuck behind a long script no longer use up
the concurrent-request limit.
- Studio 4: the environment node is found, and the first recipe
apply
after Studio starts no longer times out.
Plugin, dazpy 2.16.0 and daz-ts 0.2.0 release together; upgrade the plugin.
Full list: CHANGELOG.md.
Earlier Releases
Notes for v2.15.0 and earlier are in CHANGELOG.md.
Requirements
- DAZ Studio 4.5+ (for running the plugin)
- DAZ Studio 4.5+ SDK (for building from source)
- CMake 3.5+
- Compiler:
- Windows: Visual Studio 2019 or 2022 (MSVC)
- macOS: Xcode / clang with libc++
๐ dazpy Python SDK
dazpy is a Python SDK that drives DAZ Studio through the Script Server.
It exposes the DAZ Studio scene graph as typed Python objects so you can write
automation code without authoring DazScript by hand.
Installation
Install from PyPI (add [aio] for the async client):
pip install dazpy # or: pip install "dazpy[aio]"
Keep dazpy's major.minor version no newer than the plugin's. Studio 6.25 users
are on plugin v2.9.3 and should run pip install dazpy==2.9.3. Each
GitHub release
also ships the matching dazpy-*.whl.
Or install directly from the repo for development:
pip install -e .
Requirements: Python 3.10+, requests (installed automatically).
Jupyter Notebook
The repo ships an interactive Jupyter notebook (notebooks/dazpy_intro.ipynb) that
covers the full dazpy API with runnable examples. Launcher scripts handle installing
Jupyter and opening the notebook in one step.
Prerequisites: DAZ Studio must be running with the DazScriptServer plugin active before opening the notebook.
Launch (macOS / Linux / Git Bash on Windows):
./notebook.sh
Launch (Windows PowerShell):
.\notebook.ps1
Both scripts install dazpy (editable) and notebook if they are not already present,
then open Jupyter in the notebooks/ directory.
Notebook sections:
| Section |
What it covers |
| 1. Server health |
client.health() โ verify the plugin is reachable |
| 2. Scene overview |
scene.num_nodes(), scene.nodes() โ list everything in the scene |
| 3. Find a figure / read a bone |
find_skeleton_by_label(), find_bone(), bone.local_euler |
| 4. Raw DazScript |
client.execute() โ run arbitrary DazScript when the SDK doesn't cover it |
| 5. Error handling |
Full exception hierarchy with try/except examples |
| 6. API browser |
dir(obj) one-liner to list any object's public API surface |
| 7. Jupyter introspection |
obj? / obj?? inline help for any dazpy object |
| 8. Interactive bone rotator |
ipywidgets sliders driving bone.set_local_rotation() in real time |
| 9. Morph / property explorer |
List, search, and set morphs with morph_values() / set_morph_values() |
| 10. Scene tree pretty-printer |
scene.node_tree() rendered as an indented tree with box-drawing characters |
Interactive bone rotator (section 8) requires ipywidgets:
pip install ipywidgets
Connecting to DAZ Studio
from dazpy import DazClient, DazScene
# Default: 127.0.0.1:18811, token auto-loaded from ~/.daz3d/dazscriptserver_token.txt
client = DazClient()
# Explicit connection
client = DazClient(host="127.0.0.1", port=18811, token="your-token", timeout=30.0)
scene = DazScene(client) # or just DazScene() to use a default client
DazClient also exposes status(), health(), and metrics() for server introspection.
Server version check. DazClient (and AsyncDazClient) reads the plugin
version from GET /status before its first request, and again after a dropped
connection or when the plugin's X-Server-Instance-Id changes (Studio
restarted). If the plugin is older than dazpy.MIN_SERVER_VERSION (the oldest
plugin this dazpy needs, currently 2.12) it emits a
dazpy.exceptions.ServerVersionWarning