Page 1 of 1

calling Capture cameras via macro

Posted: 07 Nov 2018, 16:32
by sideshowbond
Is there a way to recall a user generated view/camera via macro?

Sebastian found out how to call the factory ones

Code: Select all

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")))

but we haven't found out how to access the user ones.

Re: calling Capture cameras via macro

Posted: 13 Nov 2018, 00:27
by Gregory
The Capture Settings window uses the same UpdatePosition function, however passes the position directly (the third parameter) from the data it has. There does not appear to be a function to retrieve a position outside of the predefined ones and it is not a type that can be casted/converted from text as with more common types. You might be able to start from one of the predefined and use DragPosition and DragAngle to get to the desired position but this is not perhaps ideal.