Skip to content

Commit 3ccc03d

Browse files
author
rdeioris
authored
Update Plugin_API.md
1 parent 250190b commit 3ccc03d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/Plugin_API.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,13 @@ Managing the descriptor
5050
-
5151

5252
You can load/write a json string from/to the plugin descriptor
53+
54+
The boolean argument is the bPluginTypeEnabledByDefault field (it is the 'Enabled' tick in the plugins menu of the editor)
55+
56+
```python
57+
# get the current json descriptor of the plugin
58+
json = paper2d.to_json(True)
59+
60+
# load a json in the plugin descriptor
61+
paper2d.from_json(json_blob, True)
62+
```

0 commit comments

Comments
 (0)