Π Π°Π±ΠΎΡΠ°Ρ Ρ 3DCoat, ΡΡ, Π½Π°Π²Π΅ΡΠ½ΡΠΊΠ°, Π·Π½Π°ΠΊΠΎΠΌ Ρ Π΅Π³ΠΎ "ΠΊΠΎΠ½ΡΠ΅ΠΏΡΠΈΠ΅ΠΉ ΠΊΠΎΠΌΠ½Π°Ρ".
ΠΠ°ΠΆΠ½ΠΎ ΠΏΠΎΠ½ΠΈΠΌΠ°ΡΡ, ΡΡΠΎ ΡΠΊΡΠΈΠΏΡΡ ΡΠ°Π±ΠΎΡΠ°ΡΡ Ρ ΠΊΠΎΠΌΠ½Π°ΡΠΎΠΉ, ΠΊΠΎΡΠΎΡΠ°Ρ ΠΎΡΠΊΡΡΡΠ° ΡΠ΅ΠΉΡΠ°Ρ.
Π ΠΊΠΎΠ½ΠΊΡΠ΅ΡΠ½ΡΡ ΠΊΠΎΠΌΠ½Π°ΡΡ ΠΌΠΎΠΆΠ΅ΡΡ ΠΏΠΎΠΏΠ°ΡΡΡ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΈΠΌΠΈ ΡΠΏΠΎΡΠΎΠ±Π°ΠΌΠΈ.
ΠΠ°ΠΏΡΠΈΠΌΠ΅Ρ, ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΡ ΠΎΠ±ΡΠ΅ΠΊΡ UI
:
// ΠΎΠ±ΡΡΠ²ΠΈΠΌ ΠΎΠ±ΡΠ΅ΠΊΡ
UI ui;
// ΡΡΠ° ΠΊΠΎΠΌΠ°Π½Π΄Π° ΠΏΠ΅ΡΠ΅ΠΌΠ΅ΡΡΠΈΡΡ ΡΠ΅Π±Ρ (ΠΈ ΡΠ²ΠΎΠΉ ΡΠΊΡΠΈΠΏΡ) Π² ΠΊΠΎΠΌΠ½Π°ΡΡ ΡΠΊΡΠ»ΡΠΏΡΠΈΠ½Π³Π°
ui.toSculptRoom();
// ΡΡΠ° - ΠΎΡΠΊΡΠΎΠ΅Ρ ΠΊΠΎΠΌΠ½Π°ΡΡ ΡΠ΅Π½Π΄Π΅ΡΠΈΠ½Π³Π°
ui.toRenderRoom();
// ΠΏΠΎΠΏΠ°Π΄ΡΡΡ Π² ΠΊΠΎΠΌΠ½Π°ΡΡ ΡΠ°ΡΠΊΡΠ°ΡΠΈΠ²Π°Π½ΠΈΡ
ui.toPaintRoom();
// Π±ΡΠ΄Π΅ΡΡ UV-ΡΠ°Π·Π²ΠΎΡΠ°ΡΠΈΠ²Π°ΡΡΡΡ
ui.toUVRoom();
// Π° ΡΠ°ΠΊ ΡΠ΅Π±Ρ ΠΆΠ΄ΡΡ ΡΠ΅ΡΠΎΠΏΠΎΠ»ΠΎΠ³ΠΈΡ
ui.toRetopoRoom();
ΠΠΎΠΌΠ½ΠΈ, ΡΡΠΎ Π½Π΅ΠΎΠ±Ρ
ΠΎΠ΄ΠΈΠΌΠΎ ΠΎΠ±ΡΡΠ²ΠΈΡΡ ΠΎΠ±ΡΠ΅ΠΊΡ UI
ΠΏΠ΅ΡΠ΅Π΄ Π΅Π³ΠΎ ΠΏΠ΅ΡΠ²ΡΠΌ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΠ΅ΠΌ:
UI ui;
Π ΡΠΊΡΠ»ΡΠΏΡ-ΠΊΠΎΠΌΠ½Π°ΡΡ ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠ°ΠΏΠ°ΡΡΡ ΠΏΡΠΎΡΡΠΎ Π½Π°ΠΏΠΈΡΠ°Π²
SculptRoom sculptRoom;
ΠΡΠ° ΠΊΠΎΠΌΠ°Π½Π΄Π° Π½Π΅ ΡΠΎΠ»ΡΠΊΠΎ ΠΎΡΠΊΡΠΎΠ΅Ρ ΡΠ΅Π±Π΅ ΠΊΠΎΠΌΠ½Π°ΡΡ, Π½ΠΎ ΠΈ ΠΏΠΎΠ·Π²ΠΎΠ»ΠΈΡ Π½Π°ΡΡΡΠΎΠΈΡΡ ΠΊΠΎΠΌΠ½Π°ΡΡ ΠΏΠΎΠ΄ ΡΠ²ΠΎΠΉ ΡΠΊΡΠΈΠΏΡ:
// ΠΏΠ΅ΡΠ΅Π²Π΅Π΄ΡΠΌ ΠΊΠΎΠΌΠ½ΡΡΠ° Π² ΡΡΡΡΠ΅ΠΉΡΠ½ΡΠΉ ΡΠ΅ΠΆΠΈΠΌ
sculptRoom.toSurface();
// ΠΈΠ»ΠΈ Π²ΠΎΠΊΡΠ΅Π»ΡΠ½ΡΠΉ
sculptRoom.toVoxel();
// ΡΠ·Π½Π°ΡΠΌ, Π² ΡΡΡΡΠΈΡΠ½ΠΎΠΌ Π»ΠΈ ΡΠ΅ΠΆΠΈΠΌΠ΅ ΠΎΡΠΊΡΡΡΠ° ΠΊΠΎΠΌΠ½Π°ΡΠ° ΡΠ΅ΠΉΡΠ°Ρ
// ΠΏΠΎΠ»ΡΡΠΈΠΌ `true`, Π΅ΡΠ»ΠΈ Π΄Π°
// ΠΏΠΎΠ»ΡΡΠΈΠΌ `false`, Π΅ΡΠ»ΠΈ Π² Π²ΠΎΠΊΡΠ΅Π»ΡΠ½ΠΎΠΌ
bool mode = sculptRoom.surface();
// ΠΌΠΎΠΆΠ΅ΠΌ ΠΎΡΠΈΡΡΠΈΡΡ ΠΊΠΎΠΌΠ½Π°ΡΡ ΠΎΡ ΡΠΎΠ·Π΄Π°Π½Π½ΡΡ
Π² Π½Π΅ΠΉ ΡΠ°Π½Π΅Π΅ ΠΌΠΎΠ΄Π΅Π»Π΅ΠΉ
sculptRoom.clear();
// Π΅ΡΠ»ΠΈ ΡΠ²ΠΎΠΉ ΡΠΊΡΠΈΠΏΡ ΠΏΠ΅ΡΠ΅ΠΊΠ»ΡΡΠ°Π»ΡΡ Π² Π΄ΡΡΠ³ΠΈΠ΅ ΠΊΠΎΠΌΠ½Π°ΡΡ,
// Π²Π΅ΡΠ½ΡΡΡΡΡ Π² ΡΠΊΡΠ»ΡΠΏΡ ΡΡ ΠΌΠΎΠΆΠ΅ΡΡ ΡΠ°ΠΊΠΎΠΉ ΠΊΠΎΠΌΠ°Π½Π΄ΠΎΠΉ
sculptRoom.focus();
// ΡΠΎΠ·Π΄Π°Π² ΠΌΠ΅Ρ, ΠΌΠΎΠΆΠ΅ΡΡ Π»Π΅Π³ΠΊΠΎ Π΄ΠΎΠ±Π°Π²ΠΈΡΡ Π΅Π³ΠΎ Π² ΠΊΠΎΠΌΠ½Π°ΡΡ
sculptRoom += Π’Π²ΠΎΠΉΠΠ΅Ρ;
Π’. ΠΊ. ΡΠΊΡΠΈΠΏΡΠΈΠ½Π³ 3DCoat ΠΏΠΎΠ΄Π΄Π΅ΡΠΆΠΈΠ²Π°Π΅Ρ fluent-ΠΈΠ½ΡΠ΅ΡΡΠ΅ΠΉΡ, ΠΌΠΎΠΆΠ΅ΡΡ ΠΏΠΈΡΠ°ΡΡ Π½ΡΠΆΠ½ΡΡ ΡΠ΅Π±Π΅ ΠΏΠΎΡΠ»Π΅Π΄ΠΎΠ²Π°ΡΠ΅Π»ΡΠ½ΠΎΡΡΡ ΠΎΠ΄Π½ΠΎΠΉ ΡΡΡΠΎΠΊΠΎΠΉ. ΠΠ°ΠΏΡΠΈΠΌΠ΅Ρ:
// ΠΎΡΠΈΡΡΠΈΡΡ ΡΠΊΡΠ»ΡΠΏΡ-ΠΊΠΎΠΌΠ½Π°ΡΡ ΠΈ ΠΏΠ΅ΡΠ΅Π²Π΅ΡΡΠΈ Π΅Ρ Π² ΡΡΡΡΠ΅ΠΉΡΠ½ΡΠΉ ΡΠ΅ΠΆΠΈΠΌ
sculptRoom.clear().toSurface();
ΠΠΎΡΠΌΠΎΡΡΠΈ ΡΠ°ΠΊΠΆΠ΅ ΡΡΠΎΡ Π½Π°Π±ΠΎΡ ΡΡΠ½ΠΊΡΠΈΠΉ Π΄Π»Ρ ΠΏΠΎΠ»Π½ΠΎΠΉ ΠΊΠ°ΡΡΠΈΠ½Ρ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΠ΅ΠΉ:
// Returns whole command line.
string getCommandLine();
// Stores some string as global value that may be read later in
// the session. The value will be stored in 3B file and you will
// be able to read in further work with this scene.
DEPRECATED void SetGlobalVar(string& Name,string& Value)
// Returns value previously stored using SetGlobalVar.
DEPRECATED string GetGlobalVar (string& Name)
// Returns scene filename (last saved or opened as 3B file).
DEPRECATED string GetSceneFileName()
// Sets scene filename for further saving.
DEPRECATED void SetSceneFileName(string& Name)
// Highlight element with red rectangle.
// Pass the `time` in seconds.
void HighlightUIElement(string &ID, float time);
// Goes to one of previous dialogs in call stack.
DEPRECATED void back(int steps=1);
// Opens window described by xml-file pointed by Path.
// If Path contains .3b file will be opened as 3B file.
DEPRECATED void open(string &Path);
// Opens model for PPP, if path is empty, shows open dialog.
DEPRECATED void ppp(string &path);
// Opens model for MV painting, if path is empty, shows open dialog.
DEPRECATED void mv(string &path);
// Opens model for Ptex, if path is empty, shows open dialog.
DEPRECATED void ptex(string &path);
// Import image as mesh, dialog will be shown.
DEPRECATED void imagemesh();
// Import mesh as reference, if path is empty dialog will be shown.
DEPRECATED void refmesh(string &path);
// Import mesh for vertex painting, if path is empty dialog will be shown.
DEPRECATED void vertexpaint(string &path);
// Perform autopo over the mesh chosen in dialog.
DEPRECATED void autopo(string &path);
// Opens mesh for repairing. If id contains "vox" then model will be
// voxelized, if there is substring "shell" then mesh will be imported
// as thin shell. Mesh Opening dialog will be shown.
DEPRECATED void repair(string &id);
// Activate bas-relief tool.
DEPRECATED void bass();
// Activale remove undercuts mode.
DEPRECATED void undercut();
// Activate special voxel tool. id may be found in English.xml between
// ... if you will find name of tool between
// ... tags.
DEPRECATED void activate(string &id);
// Activate retopo tool.
DEPRECATED void retopo();
// Open mesh using dialog and merge as retopo mesh.
DEPRECATED void retopopen();
// Activate any room - name is one of "Paint", "Tweak", "UV",
// "Voxels", "Retopo", "Render".
DEPRECATED void ToRoom(string &name);
// Check if you are in specified room - name is one of "Paint",
// "Tweak", "UV", "Voxels", "Retopo", "Render".
DEPRECATED bool IsInRoom(string &name);
// Add new volume in voxel room. If name is empty name will be
// assigned automatically.
DEPRECATED void AddNewVolume(string &name);
// Activate UV room.
DEPRECATED void uv();
// Activate voxel room and add new volume.
DEPRECATED void vox();
// Create sphere of radius R in voxel room in current object.
// \param mode 0 - add, 1 - subtract, 2 - intersect with scene.
DEPRECATED void sphere(float x,float y,float z,float r,int mode);
// Create cube in voxel room in current object.
// \param mode 0 - add, 1 - subtract, 2 - intersect with scene.
// \param sizex Size by X-axis.
// \param sizey Size by Y-axis.
// \param sizez Size by Z-axis.
DEPRECATED void cube(float x,float y,float z,float sizex,float sizey,float sizez,int mode);
// Turn all volumes to surface mode.
DEPRECATED void surf();
// Turn current volume to the surface mode.
DEPRECATED void cursurf();
// Turn current volume to voxel mode, voxelize if need.
DEPRECATED void voxelize();
// Sets merging options in voxel room. opt is just set of substrings
// with different options. Possible values are:
// [voxelize=true]
// [voxelize=false]
// [separate=true]
// [separate=false]
// [respectneg=true]
// [respectneg=false]
// [as_skin=true]
// [as_skin=false]
// [skin=....] - to set skin thickness.
DEPRECATED void mergeopt(string &opt);
// Example:
mergeopt( "[voxelize=true][as_skin=true][skin=4.5]" );
// Merge model in voxel room. Empty string means that dialog will be shown.
DEPRECATED void merge(string &model);
// Activate voxel primitives tool. Possible primitives:
// cube, cylinder, sphere, tube, cone, ellipse, n-gon, gear.
DEPRECATED void prim(string &id);
// Apply in current tool (same as press enter).
DEPRECATED void apply();
// Apply in Merge tool without asking "Keep scale?".
// Scale will not be kept and scene scale will not be changed.
DEPRECATED void ApplyAndKeepScale();
// Apply in current tool (same as press enter) wint one difference -
// in Merge tool scale of merged object sill be automatically kept and
// scene scale changed if this merge is first.
DEPRECATED void mapply();
// Open recent 3B-file.
DEPRECATED void recent3b();
// Print text to MyDocuments/3D-CoatV4/log.txt.
DEPRECATED void Log(string &line);
// Generate integer random number min..max.
int rand(int min,int max);
// Generate floating random number min..max.
float randF(float min,float max);
// Set random generator seed.
void seed(int val);
// Show progress bar pos = 0..100.
DEPRECATED void ProgressBar(const string& message,int pos);
// Set orthogonal (true) or perspective (false) view mode.
DEPRECATED void SetOrthoMode(bool value);