3DCoat
3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
|
operate over the Coat's ui More...
#include <CoreAPI.h>
Static Public Member Functions | |
static bool | cmd (const char *id, std::function< void()> process_in_modal_dialog=0) |
perform some command in UI. The ID may be taken from the UI by clicking RMB+MMB, then the ID will appear in the clipboard (look Edit->Prferences->General->Script info type). If the element triggers modal dialog, the execution will be paused till the modal dialog will be closed, but the callback will be called each frame in modal dialog, so you will be able to control what happens in the modal dialog. More... | |
static bool | wait (const char *id, float max_seconds) |
wait till the element id will appear in the UI. The element will not be clicked. The max wait time is max_seconds. More... | |
static bool | setSliderValue (const char *id, float value) |
Set the value for the the slider (if exists in UI) More... | |
static float | getSliderValue (const char *id) |
get the value of the slider More... | |
static bool | setEditBoxValue (const char *id, const char *value) |
set the edit box value More... | |
static bool | setEditBoxValue (const char *id, int value) |
set the edit box value More... | |
static bool | setEditBoxValue (const char *id, float value) |
set the edit box value More... | |
static bool | getEditBoxValue (const char *id, str &result) |
get the edit box value More... | |
static void | apply () |
pess ENTER, acts as Apply usually More... | |
static void | setFileForFileDialog (const char *filename) |
Set the file for the next file dialog that will be triggered by user. If you will use coat::ui:cmd(...) to trigger some command that shows the file dialog this command allows to substitute the filename for that dialog instead of showing the dialog. This acts only for ONE next dialog. More... | |
static bool | getBoolField (const char *id) |
Get the bool field from the checkbox in UI. More... | |
static bool | setBoolValue (const char *id, bool value) |
Set the value for the checkbox in UI. More... | |
static const char * | currentRoom () |
get the current room name More... | |
static void | toRoom (const char *name) |
switch to the room More... | |
static int | roomsCount () |
returns the rooms count More... | |
static const char * | roomName (int index) |
get the room name by index More... | |
static const char * | roomID (int index) |
get the text identifier of the room More... | |
operate over the Coat's ui
|
static |
pess ENTER, acts as Apply usually
|
static |
perform some command in UI. The ID may be taken from the UI by clicking RMB+MMB, then the ID will appear in the clipboard (look Edit->Prferences->General->Script info type). If the element triggers modal dialog, the execution will be paused till the modal dialog will be closed, but the callback will be called each frame in modal dialog, so you will be able to control what happens in the modal dialog.
id | the identifier taken from the UI |
process_in_modal_dialog | the callback/lambda that will be called each frame till you are within the modal dialog |
|
static |
get the current room name
|
static |
Get the bool field from the checkbox in UI.
id | the element identifier |
|
static |
get the edit box value
id | the ID of the element |
result | the string the will get the result |
|
static |
get the value of the slider
id | the ID of the element |
|
static |
get the text identifier of the room
index | the room index |
|
static |
get the room name by index
index | the room index |
|
static |
returns the rooms count
|
static |
Set the value for the checkbox in UI.
id | the element identifier |
value | the value to set |
|
static |
set the edit box value
id | the ID of the element |
value | the value to set |
|
static |
set the edit box value
id | the ID of the element |
value | the value to set |
|
static |
set the edit box value
id | the ID of the element |
value | the value to set |
|
static |
Set the file for the next file dialog that will be triggered by user. If you will use coat::ui:cmd(...) to trigger some command that shows the file dialog this command allows to substitute the filename for that dialog instead of showing the dialog. This acts only for ONE next dialog.
filename | the filename to substitute. |
|
static |
Set the value for the the slider (if exists in UI)
id | the ID of the element |
value | the value to set |
|
static |
switch to the room
name | the room name. Pay attention, you may pass the name or identifier, but name has bigger priory. |
|
static |
wait till the element id will appear in the UI. The element will not be clicked. The max wait time is max_seconds.
id | The ID we wait to appear |
max_seconds | the max wait time (seconds) |
References coat::io::step().