mirror of
https://github.com/harfang3d/harfang3d.git
synced 2024-06-15 19:52:14 +00:00
15 lines
502 B
Markdown
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.
|