User Tools

Site Tools


macros:example:capturecamera

Example

Capture - Camera

by: idea by Alex del Bondio, solution provided by Greg Haynes
published: here
description: change Capture camera via macro
remarks:

Remarks

  • unfortunately until now it is only possible to switch between the predefined camera positions (front/up/left/right)

functions

affected properties

Code

capturecamera.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
 
  <!-- Capture Camera, Alex del Bondio - April 2019 -->
  <macro id="adb.Macros.Capture.TopView" name="Capture Top View">
    <sequence>
      <step>Visualiser.Capture.UpdatePosition
        (Windows.Visualiser.Capture.CameraPositions, 
        Windows.Visualiser.Capture.SelectedCamera, 
        CaptureCameraPositions.GetPresetPosition
          (Math.ToEnum("Avolites.Titan.Controllers.Console", 
          "Avolites.Titan.Controllers.Console.CaptureVisualiser.CaptureCameraPresetPosition", 
          "TopView")))</step>
    </sequence>
  </macro>
 
  <macro id="adb.Macros.Capture.FrontView" name="Capture Front View">
    <sequence>
      <step>Visualiser.Capture.UpdatePosition
        (Windows.Visualiser.Capture.CameraPositions, 
        Windows.Visualiser.Capture.SelectedCamera, 
        CaptureCameraPositions.GetPresetPosition
          (Math.ToEnum("Avolites.Titan.Controllers.Console", 
          "Avolites.Titan.Controllers.Console.CaptureVisualiser.CaptureCameraPresetPosition", 
          "FrontView")))</step>
    </sequence>
  </macro>
 
  <macro id="adb.Macros.Capture.RightSideView" name="Capture Right View">
    <sequence>
      <step>Visualiser.Capture.UpdatePosition
        (Windows.Visualiser.Capture.CameraPositions, 
        Windows.Visualiser.Capture.SelectedCamera, 
        CaptureCameraPositions.GetPresetPosition
          (Math.ToEnum("Avolites.Titan.Controllers.Console", 
          "Avolites.Titan.Controllers.Console.CaptureVisualiser.CaptureCameraPresetPosition", 
          "RightSideView")))</step>
    </sequence>
  </macro>
 
  <macro id="adb.Macros.Capture.LeftSideView" name="Capture Left View">
    <sequence>
      <step>Visualiser.Capture.UpdatePosition
        (Windows.Visualiser.Capture.CameraPositions, 
        Windows.Visualiser.Capture.SelectedCamera, 
        CaptureCameraPositions.GetPresetPosition
          (Math.ToEnum("Avolites.Titan.Controllers.Console", 
          "Avolites.Titan.Controllers.Console.CaptureVisualiser.CaptureCameraPresetPosition", 
          "LeftSideView")))</step>
    </sequence>
  </macro>
 
</avolites.macros>

Explanation

This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax

How to use it

You could leave a comment if you were logged in.
macros/example/capturecamera.txt · Last modified: 2019/05/05 13:27 by icke_siegen