Well, I did some more testing, and the thing with the setters in py is
as follows:
- the Transform setters will change a copy, but not the live transform
- the EC_Placeable functions SetPosition(x,y,z) and
SetOrientation(const Quat& q) do change the position or orientation of
the real live runtime component. For the orientation, you have to
create a copy first, change that using either FromEulerZYX or
SetFromAxisAngle and then use the copy as parameter for
SetOrientation, like this:
q =
tundra._pythonscriptmodule.GetActiveCamera().GetComponentRaw("EC_Placeable").Orientation()
q = q.FromEulerZYX(copyrot.z(),copyrot.y(),copyrot.x())
tundra._pythonscriptmodule.GetActiveCamera().GetComponentRaw("EC_Placeable").SetOrientation(q)
Q =
tundra._pythonscriptmodule.GetActiveCamera().GetComponentRaw("EC_Placeable").Orientation()
Q.SetFromAxisAngle(v, self.angle)
tundra._pythonscriptmodule.GetActiveCamera().GetComponentRaw("EC_Placeable").SetOrientation(Q)
Maybe you gurus can find an easier way;-)
-the getters seem to work all right
--
http://groups.google.com/group/realxtend
http://www.realxtend.org