r/OpenPythonSCAD • u/w0lfwood • Jun 17 '25
osimport() error
openscad built from the latest openscad/openscad git commit. can show a cube just fine via python. but when I try to osimport() an stl, I get an error:
Running Python 3.13.3 without venv.
ERROR: Traceback (most recent call last):
File "<string>", line 5, in <module>
NameError: name 'osimport' is not defined
Execution aborted
my file:
=2
=.1
=
2
Upvotes
View all comments
Show parent comment
1
u/rebuyer10110 Jun 24 '25
I presume you mean importing a python file as a library when your main script is .scad?
I dont believe so.