I seem to have encountered a bug in Mayas expressions. If there is a work around I'd love to know. This is the problem I have encountered.
I attach an expression to an object, say I had the expression changing the impulseX value of myObject.
I would type
myObject.ImpulseX = 0.1; //then create
and then after reloading, or attaching another script or some random cause, I check the script because it isn't working as expected, and Maya has added text to my expression like such:
myrigidBody2.ImpulseX = .1; or
basically just jumbling characters and adding or deleting characters, it is quite frustrating to work around.
Any help would be appreciated.