7thSense - Compere

External Control Help - 7thsense.one

Various commands can be sent into Compere from an external source to control it in different ways. Currently Compere supports commands sent via TCP. Configure IP addresses and ports in Compere Preferences.

Command grouping
group
Group a set of commands to be applied as a batch
parameters/example
<commands><command cmd="set" path="/GroupSet/Group/proj1/position/x" value="0.2"/><command cmd="set" path="/GroupSet/Group/proj1/position/y" value="0.3"/></commands>
General
actions
List all actions
parameters/example
<command cmd="actions"/>
actions
Invoke an action
parameters/example
type: Name of action to invoke
<command cmd="actions" type="Import MPCDI" path="C:\path\to\system.mpcdi"/>
insert
Insert an entity into the project
parameters/example
path: path of the node
type: type of node
name: a new name (optional)
<command cmd="insert" path="/GroupSet/Group" type="Projector" name="p1"/>
requestcommands
List all available commands
parameters/example
<command cmd="requestcommands"/>
Project archiving commands
new
Create a new project
parameters/example
projectname: name of new project
<command cmd="new" projectname="My project"/>
open
Open a project file
parameters/example
file: path to project file on disk
<command cmd="open" file="C:\Users\[UserName]\AppData\Local\compere\Projects\Proj1.prj"/>
save
Save the current project
parameters/example
file: destination path on disk
<command cmd="save" file="C:\Users\[UserName]\AppData\Local\compere\Projects\Proj1.prj"/>
Project interaction commands
delete
Delete a node from the project
parameters/example
path: path of the node to set
<command cmd="delete" path="/GroupSet/Group/Projector"/>
get
Returns all properties of a project node
parameters/example
path: path of the node to get
<command cmd="get" path="RenderSettingsSet/RenderSettings/viewVerticalAngle"/>
set
Set the value of a property of a project node
parameters/example
path: path of the node to set
value: new value of this property
<command cmd="set" path="RenderSettingsSet/RenderSettings/viewVerticalAngle" value="5"/>
setlink
Create link between two nodes in the project
parameters/example
src: link source node path
dst: link destination node path
<command cmd="setLink" src="/GroupSet/Group/MyJuggler/Matrix/Input:3/outputconnection" dst="/GroupSet/Group/MyJuggler/Matrix/Output:2/inputconnection"/>
Registration commands
register
Register to receive notifications for a node
parameters/example
path: path of node to register to
<command cmd="register" path="/GroupSet/Group/Juggler 1/Canvas1/Output1"/>
registerdelete
Deregister to receive notifications for a node
parameters/example
value: value of the register ID to delete
<command cmd="registerdelete" value="e0a33d5d899d48da8b1ff8a58f7dd02d"/>
Scripts
scripts
List all script info
parameters/example
<command cmd="scripts"/>
System status
status
Report system status
parameters/example
<command cmd="status"/>

HTML release: 24/02/21