Page 1 of 1

negative instance scale

Posted: Thu May 29, 2014 10:10 am
by d76
Hello
here are the results of simple script, both directly rendered and opened in studio. in both 2.7 and 3.0 instance in Studio is transformed differently than expected, see screenshots. Also when scene is saved from Studio, the bad transformation will occur in render as well..

2.7
Image
Image

3.0
Image
Image
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())
b.origin = Cvector(b.origin.x() , b.origin.y() + 2, b.origin.z())
o.setBaseAndPivot(b, p)

scene.writeMXS("Cube2.mxs")