You can work with 3DCoat cameras via scripts.
Simple example.
Debug dbg;
DebugLog log = dbg.log();
void main() {
SculptRoom sculpt;
Builder builder;
const Vec3 pa( 0 );
sculpt.clear().toSurface();
Mesh a = builder.cuboid()
.side( Vec3( 500, 400, 300 ) )
.position( pa )
.details( 0.1 )
.build();
sculpt += a;
CameraShortcut camera;
CameraShortcut::ViewState state = camera.State();
state.Fov(105.0);
state.Position(Vec3(0));
camera.State(state);
CameraView cameraView;
log += "CameraView::OrthoState";
log += CameraView::OrthoState::Back;
cameraView.SetView(CameraView::OrthoState::Back);
}
Examples of those classes are inside the classes - just click on the links!
- CameraView. Class to control camera view.
- CameraShortcut. Class to control camera state.
- CameraTools. Camera utils.