r/OpenPythonSCAD • u/gadget3D • Mar 27 '25
Dragging and moving Objects in PythonSCAD
These days PythonSCAD starts to become even more interactive.
Now you can drag edges and move them around with your mouse tip like so:
https://www.youtube.com/watch?v=9xBtzE5hhR4
In your code you have to mark values, which are enabled to be "draggable".
Right now this only works for cube() and rotate(), but many more to follow. my next goal is will be also update the source code after drag has finished.
5
Upvotes
View all comments
Show parent comment
1
u/gadget3D Mar 29 '25 edited Mar 29 '25
Some Beta-test installer 2025-03-29 is available for download,
For a quick start you can write:
from openscad import *
c=cube([10,10,"10"])
c.show()
Then press F6 for render
Hold Ctrl and drag a point of the cube upwards
Let me know if you see it working
the Drag feature is fully funcional for cube() and rotate() paramters. let me know
Generally, all numbers which are in quotes are "enabled" for dragging