THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/06/2011 at 08:24, xxxxxxxx wrote:
Hy there,
I just have a strange little problem. I already wrote a complete car-simulator in python, but the following really simple example just does not work.
What do I miss?
This code is in a Xpresso Node on a plane (can be any object), o is the Object-Link:
import c4d
def main() :
global o
m = o.GetMg()
print m.off.y
m.off.y = m.off.y + 100
print m.off.y
o.SetMg(m)
print m
The two print-statements will output the same value for y ... and the position of the object will not change.
... is there a way to attach an example-scene ?
Thanx,
maxx