Replies: 3 comments
|
In video nothing shown on the screen. Maybe you need to try another object type to demonstrate :) Also if you want it we can add it to plugin store |
0 replies
|
I couldn't see anything on the screen in the video. Maybe using a different object type would better demonstrate the feature. 🙂 We can also publish it to the plugin store if that sounds good." |
0 replies
|
Started over based on API V2 after commit b7dc62f. Results have been pushed to ocs_python_repl. Usage is trouble some since current API does not do async. So after execution from editor PYTHONUPDATE has to be called manually. Am stitching up a V4 proposal for async extension and will bring forward whenever ready. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Dear all,
thanks for OCS.
I have tried to assemble an inline Python REPL plugin extending the existing API for V3. I find Python scripting in CAD very useful. Changes to
src/have been made. It uses the locally installed Python interpreter, sopypi.orgis available. The workflow is as follows:NEWdocument launchPYTHONSHELL.main.pyin a temporary directory.Interprocess-communication is maintained to protect the host. For performance a
serde + bincodebridge is opened. Below script generates 100000 points in OCS and deletes.On my laptop this outputs, meaning roughly 2s for add/remove 100000 points:
Please find attached screencast for further details. Before continuing forward to a pull request I prefer a discussion whether this is considered a reasonable addition or simply overshot and not priority.
Best
Seb
REPL.mp4
Update: swapped video
All reactions