Synchronous Client API
Overview
Getting Started
from uesynth import UESynthClient
# Connect to UESynth
client = UESynthClient()
# Your code here...
# Always disconnect when done
client.disconnect()Client Configuration
Basic Connection
Advanced Options
Core Methods
Connection Management
connect()
connect()disconnect()
disconnect()is_connected()
is_connected()ping()
ping()Camera Control
Position and Rotation
camera.set_location(x, y, z)
camera.set_location(x, y, z)camera.set_rotation(pitch, yaw, roll)
camera.set_rotation(pitch, yaw, roll)camera.get_location()
camera.get_location()camera.get_rotation()
camera.get_rotation()Camera Settings
camera.set_fov(fov)
camera.set_fov(fov)camera.get_fov()
camera.get_fov()Data Capture
Image Capture
capture.rgb(width=None, height=None)
capture.rgb(width=None, height=None)capture.depth(width=None, height=None)
capture.depth(width=None, height=None)capture.segmentation(width=None, height=None)
capture.segmentation(width=None, height=None)capture.normals(width=None, height=None)
capture.normals(width=None, height=None)Multi-Modal Capture
capture.all_modalities(width=None, height=None)
capture.all_modalities(width=None, height=None)Object Manipulation
Transform Control
objects.set_location(name, x, y, z)
objects.set_location(name, x, y, z)objects.set_rotation(name, pitch, yaw, roll)
objects.set_rotation(name, pitch, yaw, roll)objects.set_scale(name, x, y, z)
objects.set_scale(name, x, y, z)objects.get_transform(name)
objects.get_transform(name)Object Queries
objects.list_all()
objects.list_all()objects.find_by_class(class_name)
objects.find_by_class(class_name)Scene Control
Lighting
scene.set_time_of_day(hour, minute=0)
scene.set_time_of_day(hour, minute=0)scene.set_sun_intensity(intensity)
scene.set_sun_intensity(intensity)Weather and Environment
scene.set_weather(weather_type)
scene.set_weather(weather_type)Error Handling
Performance Considerations
Batching Operations
Context Manager
Complete Example
Next Steps
Last updated