ERROR: Traceback (most recent call last):
File "<string>", line 465, in <module>
NameError: name 'PyOpenSCAD' is not defined
Execution aborted.
2e try:
from openscad import *
PyOpenSCAD = type(cube(1))
def tx(self,x):
self.verplaatsing=x
return self.translate(x)
PyOpenSCAD.tx=tx
Gives:
ERROR: Traceback (most recent call last):
File "<string>", line 465, in <module>
TypeError: cannot set 'tx' attribute of immutable type 'openscad.PyOpenSCAD'
Sure you can can create a wrapper around the PyOpenSCAD object but thats gives extra code which doesn't help in the clarity of the code.
Something to think about?