3DCoatScripting  4.8.31β
You can manage 3DСoat features with help of scripting
🌀 Creating cameras in the scene

You can work with 3DCoat cameras via scripts.

Simple example.

Debug dbg;
DebugLog log = dbg.log();
void main() {
// prepare scene
SculptRoom sculpt;
Builder builder;
const Vec3 pa( 0 );
sculpt.clear().toSurface();
// create cube primitive
Mesh a = builder.cuboid()
.side( Vec3( 500, 400, 300 ) )
.position( pa )
.details( 0.1 )
.build();
sculpt += a;
CameraShortcut camera;
// set camera state
CameraShortcut::ViewState state = camera.State();
state.Fov(105.0);
state.Position(Vec3(0));
camera.State(state);
CameraView cameraView;
// set camera view
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.