Notifications
Clear all
[Closed] Wire Rotation
Jun 09, 2017 6:30 pm
I want to connect rotation track of an object to the same track of another object by using float script:
delete objects
Obj1 = teapot()
Obj2 = teapot pos:[100,0,0]
FS = float_script()
FS.addTarget "Rot_Z" Obj2.rotation.controller[3]
FS.SetExpression "Rot_Z"
Obj1.rotation.controller[3].controller = FS
But the problem is when I rotate the source object, rotation values are not the same.
1 Reply
Jun 09, 2017 6:30 pm
you have to convert rotation value to radians… or which is more correct:
delete objects
Obj1 = teapot()
Obj2 = teapot pos:[100,0,0]
FS = float_script()
[B]FS.addObject "Rot_Z" Obj2.rotation.controller[3]
FS.SetExpression "Rot_Z.value" [/B]
Obj1.rotation.controller[3].controller = FS