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
3
u/gadget3D Mar 27 '25
Yes, I plan to update the code automatically, later, but this is probably a tricky, unstable task.
For an algorithm, any code can be very obfuscated and maybe even ambigous. especially if a value propages through several variables , and scopes until it reaches the primitive, but lets see.
I am yet already excited to release this feature, once it ready for the folks. It will enable users to mechanical test their model, even before printing. And it allows for optical collision detection.
Before I go into code update, I think i can make the look&feel little better