harfang3d/doc/doc/man.ExtendingTheProjectExplorer.md
2021-10-13 14:40:31 +02:00

15 lines
502 B
Markdown

.title Extending the project explorer
## Writing a project explorer plugin
A scene tool plugin must be declared as a class extending the `plugin.IProjectExplorerPlugin` interface.
```python
class Plugin(IProjectExplorerPlugin):
""" A new project explorer plugin """
```
The following methods must be implemented by the plugin:
* `process_drop_event(dropped_urls, target_url)`: Process a drop event over the project explorer. Return `plugin.InterruptPluginChain` to stop execution at your plugin.