![]() |
3DCoat Python API
The 3DCoat Python API documentation.
|
Static Public Member Functions | |
| vec4 | dwordToVec4 (int d) |
| convert DWORD (unsigned int) to vec4 | |
| any | vec4ToDword (vec4 v) |
| convert vec4 to DWORD (unsigned int) | |
| randomize (int seed) | |
| set the random seed for all further random value generation | |
| float | random01 () |
| get the random value 0..1 | |
| float | random (float min, float max) |
| get the random value in range | |
| vec3 | randomNormal () |
| get the normalized random vector | |
| vec3 | perlin3d (vec3 p, float seed=0) |
| returns the perlin noise 3d vector | |
| float | perlin (vec3 p, float seed=0) |
| generate the perlin noise value | |
| str | getEnumValueByIndex (str enumID, int index) |
| get the value from the global strings list by index. | |
| int | getEnumValue (str enumID, str key) |
| get the integer value that corresponds to the string value from the global strings list. | |
| int | getEnumValueIndex (str enumID, str key) |
| get the index of the value in the global strings list. | |
| int | getEnumValuesCount (str enumID) |
| get the count of the values in the global strings list. | |
| clearEnum (str enumID) | |
| clear the global strings list. | |
| addEnumValue (str enumID, str key, int value=1) | |
| add the value to the global strings list. | |
| quit () | |
| exit the 3DCoat | |
| testSuccessful () | |
| report that the test was successful. | |
| testFailed (str message) | |
| report that the test was successful. | |
| signal (str message) | |
| send some message to 3DCoat (usually used for internal purposes) | |
| list | last_signals () |
| get the list of last signals sent to 3DCoat | |
| float | getFPS () |
| get the current FPS | |
| float | getFrameTimeMs () |
| get the frame time in milliseconds | |
| bool | inRenderProcess () |
| check if the viewport is in render process in render room | |
| set (str key, str value) | |
| Globally set the value for the key, it is even stored between sessions of the 3DCoat. | |
| str | get (str key) |
| Get previously stored value by the key. | |
|
static |
add the value to the global strings list.
| enumID | the enumerator ID |
| key | the string to add |
| value | the integer value that corresponds to the string, -1 means that the value will be the index of the string in the list, it is default value |
|
static |
clear the global strings list.
| enumID | the enumerator ID |
|
static |
|
static |
Get previously stored value by the key.
| key | the key |
|
static |
get the integer value that corresponds to the string value from the global strings list.
| enumID | the enumerator ID |
| key | the string value fo find |
|
static |
get the value from the global strings list by index.
That lists used in dropdown boxes in UI
| enumID | the enumerator ID |
| index | the index of the value |
|
static |
get the index of the value in the global strings list.
That lists used in dropdown boxes in UI
| enumID | the enumerator ID |
| key | the value to find |
|
static |
get the count of the values in the global strings list.
That lists used in dropdown boxes in UI
| enumID | the enumerator ID |
|
static |
get the current FPS
|
static |
get the frame time in milliseconds
|
static |
check if the viewport is in render process in render room
|
static |
get the list of last signals sent to 3DCoat
|
static |
generate the perlin noise value
| p | the value in 3d space |
| seed | the seed |
returns the perlin noise 3d vector
| p | the value in 3d space |
| seed | the seed |
|
static |
exit the 3DCoat
|
static |
get the random value in range
| min | low bound |
| max | high bound |
|
static |
get the random value 0..1
|
static |
set the random seed for all further random value generation
| seed | the seed |
|
static |
get the normalized random vector
|
static |
Globally set the value for the key, it is even stored between sessions of the 3DCoat.
| key | the key |
| value | the value to store |
|
static |
send some message to 3DCoat (usually used for internal purposes)
| message | the message |
|
static |
report that the test was successful.
In this case the file "InstallFolder/.installer/test_failed.txt created
| message | the message to put into that file |
|
static |
report that the test was successful.
In this case the file "InstallFolder/.installer/test_success.txt created
|
static |