Difference between revisions of "iPi Automation Add-on"
m |
|||
Line 32: | Line 32: | ||
<syntaxhighlight lang=javascript> | <syntaxhighlight lang=javascript> | ||
− | // Request without arguments | + | // Request for command without arguments |
{ | { | ||
"command": "<command_name_string>" | "command": "<command_name_string>" | ||
} | } | ||
− | // Request with arguments | + | // Request for command with arguments |
{ | { | ||
"command": "<command_name_string>", | "command": "<command_name_string>", | ||
Line 58: | Line 58: | ||
} | } | ||
− | // | + | // Response in case of error |
{ | { | ||
"success": false, | "success": false, |
Revision as of 03:27, 2 December 2015
Contents
Overview
iPi Integration Add-on allows to control iPi Recorder and iPi Mocap Studio from external application by sending JSON commands via Windows dll. It can be used for:
- Using iPi Recorder and iPi Mocap Studio as a part of third-party solution
- Automation of repeatable tasks
- Automation of custom workflow

License and Trial
iPi Integration Add-on requires separate license key, which you need to activate in iPi Mocap Studio. You can order your license here, or activate 30-days free trial. Follow the steps below to start working with iPi Integration Add-on
- Switch to Integration tab.
- Press Activate button
- Press Start 30-days Free Trial Period or Enter Integration License Key and follow further on-screen instructions

Using iPi Integration Add-on
Command Syntax Reference
Commands are strings based on JSON syntax. Commands are submitted via JSON requests that include command name and may optionally include command arguments.
The response is also JSON string. The response include success flag. In case of error the response include error message. In case of success the response may optionally include result that is JSON object.
The response can be synchroneous for commads that are performed fast, or asynchroneous if command takes time to perform.
SYNOPSIS
// Request for command without arguments { "command": "<command_name_string>" } // Request for command with arguments { "command": "<command_name_string>", "arguments": "<arguments_list_json_string>" } // Simple response in case of success { "success": true } // Response including command result field in case of success { "success": true, "result": { <result_json_string> } } // Response in case of error { "success": false, "error": "<error_message_string>" }
iPi Recorder Commands
General Commands
get-app-info
get-app-info command returns the name of application and its version.
SYNOPSIS
// Request { "command":"get-app-info" } // Response { "success":true|false, "result": { "appName":<application_name_string>, "appVersion":<application_version_string> } }
EXAMPLES
// Request { "command":"get-app-info" } // Response { "success":true, "result": { "appName":"iPi Recorder 3", "appVersion":"99.876.543.210" } }
Recording Commands
set-recorder-props
set-recorder-props command sets properties for setup, background and recroding stages.
Parameter Name | Type | Required | Allowed Values | Description |
---|---|---|---|---|
Arguments | ||||
colorCompression | string | optional |
"None" "Background subtraction" "JPEG" |
Setting RGB video compression mode |
jpegQuality | number | optional | integer from 0 to 100 |
JPEG quality for JPEG compression |
depthCompression | string | optional | "None" "Background subtraction" |
Setting depth compression mode |
globalDeviceProps | JSON object | optional |
Device-specific list of properties visible in “SHARED SETTINGS” section of “SETUP” stage | |
PlayStation Eye: Darkening for Calibration | string | optional | "None" "Darkening" "Extra Darkening" |
Darkening mode for Sony PS3 Eye cameras |
Result | ||||
Empty result |
EXAMPLES
// Request { "command":"set-recorder-props", "arguments": { "colorCompression":"jpeg", "globalDeviceProps": { "PlayStation Eye: Darkening for calibration":"None" }, "hideBackgroundWhenRecording":true, "recordingStartDelay":0, "videoMode":"640x480 color @ 50Hz" } } // Response { "success":true }