- Fri May 23, 2014 7:22 am
#380546
Hello
can anybody explain this behavior please? what i intend is to make mirrored instance, but result is not as expected. when i clone object, everything works well..
edit: Forgot to mention that the base cube is not transformed. Directly taken from library as it is.
can anybody explain this behavior please? what i intend is to make mirrored instance, but result is not as expected. when i clone object, everything works well..
edit: Forgot to mention that the base cube is not transformed. Directly taken from library as it is.
Code: Select all
#!/Library/Frameworks/Python.framework/Versions/3.2/bin/python3
# -*- coding: utf-8 -*-
from pymaxwell import *
scene = Cmaxwell(mwcallback)
scene.readMXS("Cube.mxs")
c = scene.getObject("Cube")
o = scene.createInstancement("Cube2", c)
b, p = c.getBaseAndPivot()
b.xAxis = Cvector(b.xAxis.x() * -1.0, b.xAxis.y(), b.xAxis.z())
o.setBaseAndPivot(b, p)
scene.writeMXS("Cube2.mxs")