ZBrushCentral

Question: Script to View Back of Model

*Post edit to include current code.

I am attempting to write a script that automates a few things and am stuck on camera manipulation.

The goal is to rotate the camera to see the back of the model using the current view as the front. Please note that this is not the same as using ZBrush’s default Front, Back, Left, Right, etc. views.

//1. define current camera view as Front

//2. change view to Back

Transform: Rotate Edit does not appear to be the way to go with this, as when I record a Macro session it is logged as a CanvasStroke.

ZAppLink has the tools needed for this (specifically Front and Back), however attempting to execute multiple actions from the plugin within a Macro is (to my knowledge) not possible.

1. What is the best method via ZScript to rotate the current view to “back”?

2. Does anyone know how the ZAppLink plugin sets the Front and Back views?

Thanks,

-Adam

current code:

//Rotate camera 180.

[RoutineDef,FlipCam,

[MessageOK, "Start"]

// Use ZAppLink to define current view as Front
[IPress,Document:ZAppLink Properties:Front:Front]

[MessageOK, "ZAppLink Front executed"] 

// Use ZAppLink to flip to Back view
[IPress,Document:ZAppLink Properties:Back:Back]

[MessageOK, "ZAppLink Back executed"] 

// Fit to Frame
[IPress,Transform:Fit]

]//Routine FlipCam

[IButton, ???, "Flips camera 180.",
[RoutineCall,FlipCam],
,
,
,
,
]