![]() |
3DCoat Python API
The 3DCoat Python API documentation.
|
Public Member Functions | |
| __init__ (self) | |
| __init__ (self) | |
| bool | refresh_menu (self) |
| bool | add_menu_item (self, str MenuPath, str MenuItem, str inRoom="", str inSection="", str Command="") |
| onStop (self) | |
| onStart (self) | |
| onRestart (self) | |
| bool | menu_item (self, str item_name, any on_click) |
| onMessage (self, str message) | |
| Call if another module sent message to this extension using cExtension.Message. | |
| onExtendMenu (self) | |
| insert some menu items to main menu | |
| onBuildMainMenu (self) | |
| on build the main menu | |
| onStartup (self) | |
| Call on startup, right before tools initialisation. | |
| afterInit (self) | |
| Call it after tools, graphics and shaders initialisation. | |
| preprocess (self) | |
| Call it once per frame, before tools processing. | |
| prerender (self) | |
| Call it once per frame, before the rendering stage. | |
| postprocess (self) | |
| Call it once per frame, after tools processing. | |
| postrender (self) | |
| Call it once per frame, after the rendering stage. | |
| afterUI (self) | |
| Call it once per frame, after the ui rendering, before the topmost elements. | |
| thumbnail (self) | |
| Call it once per frame to draw thumbnails. | |
| afterSettings (self) | |
| Call it once after settings loading. | |
| onNew (self) | |
| Call it as soon as user starts new scene. | |
| onKey (self) | |
| Call it as soon as user pressed the key, get the key value from Widgets.lastKey. | |
| onDropFile (self) | |
| Call if file dropped using drag&drop, filename is in Widgets.LastDroppedFile. | |
| onChangeTool (self) | |
| called when the current tool changes | |
| onChangeRoom (self) | |
| called when the current room changes | |
| onUndo (self) | |
| called when the undo triggered | |
| onRedo (self) | |
| called when the redo triggered | |
| onSaveScene (self) | |
| called before the saving the scene | |
| onExit (self) | |
| called before the exit | |
Static Public Member Functions | |
| bool | Message (str extension_name, str message) |
| int | ProcessID () |
| int | DebugPort () |
| any | globalScope () |
| int | begin_work_in_bg () |
| int | end_work_in_bg () |
| cCore.cExtension.__init__ | ( | self | ) |
| cCore.cExtension.__init__ | ( | self | ) |
| bool cCore.cExtension.add_menu_item | ( | self, | |
| str | MenuPath, | ||
| str | MenuItem, | ||
| str | inRoom = "", | ||
| str | inSection = "", | ||
| str | Command = "" ) |
| cCore.cExtension.afterInit | ( | self | ) |
Call it after tools, graphics and shaders initialisation.
| cCore.cExtension.afterSettings | ( | self | ) |
Call it once after settings loading.
| cCore.cExtension.afterUI | ( | self | ) |
Call it once per frame, after the ui rendering, before the topmost elements.
|
static |
|
static |
|
static |
|
static |
| bool cCore.cExtension.menu_item | ( | self, | |
| str | item_name, | ||
| any | on_click ) |
|
static |
| cCore.cExtension.onBuildMainMenu | ( | self | ) |
on build the main menu
| cCore.cExtension.onChangeRoom | ( | self | ) |
called when the current room changes
| cCore.cExtension.onChangeTool | ( | self | ) |
called when the current tool changes
| cCore.cExtension.onDropFile | ( | self | ) |
Call if file dropped using drag&drop, filename is in Widgets.LastDroppedFile.
Set it empty if you acquired the file.
| cCore.cExtension.onExit | ( | self | ) |
called before the exit
| cCore.cExtension.onExtendMenu | ( | self | ) |
insert some menu items to main menu
| cCore.cExtension.onKey | ( | self | ) |
Call it as soon as user pressed the key, get the key value from Widgets.lastKey.
Set it to 0 if the key captured and des not need to be propagated anymore.
| cCore.cExtension.onMessage | ( | self, | |
| str | message ) |
Call if another module sent message to this extension using cExtension.Message.
| cCore.cExtension.onNew | ( | self | ) |
Call it as soon as user starts new scene.
| cCore.cExtension.onRedo | ( | self | ) |
called when the redo triggered
| cCore.cExtension.onRestart | ( | self | ) |
| cCore.cExtension.onSaveScene | ( | self | ) |
called before the saving the scene
| cCore.cExtension.onStart | ( | self | ) |
| cCore.cExtension.onStartup | ( | self | ) |
Call on startup, right before tools initialisation.
| cCore.cExtension.onStop | ( | self | ) |
| cCore.cExtension.onUndo | ( | self | ) |
called when the undo triggered
| cCore.cExtension.postprocess | ( | self | ) |
Call it once per frame, after tools processing.
| cCore.cExtension.postrender | ( | self | ) |
Call it once per frame, after the rendering stage.
| cCore.cExtension.preprocess | ( | self | ) |
Call it once per frame, before tools processing.
| cCore.cExtension.prerender | ( | self | ) |
Call it once per frame, before the rendering stage.
|
static |
| bool cCore.cExtension.refresh_menu | ( | self | ) |
| cCore.cExtension.thumbnail | ( | self | ) |
Call it once per frame to draw thumbnails.